Is it possible to extend the ioctl interface on Linux so that a user-space application can send a function pointer to a kernel-space driver?
I, in particular, think about how to control the flow in a user-controlled way, but do it in the kernel. These operations can be attached to the kernel module, but this would greatly facilitate development, since I did not have to mess with the kernel during development.
In particular, it will be a process:
- Data is read by the driver into the buffer.
- Data is processed by these user-defined functions.
- Some processing is in progress, possibly with some HW blocks.
- Data is used by the user space application.
linux-kernel kernel linux-device-driver ioctl
Makis
source share