Linux: Ways to communicate with kernel module from user space.
- by Inso Reiges
Hello,
What are the ways to communicate with a kernel module from user space? By communication i mean sending information and commands between the module and a user space process.
I currently know of two way:
open/close/read/write/ioctl on published device node.
read/write on exported and hooked /proc file.
More specifically, can someone advice the best way to communicate with a kernel module that does not actually drives any hardware and therefore should not be littering /dev with stub nodes that exists solely for ioctl calls? I mostly need to check its various status variables and send it a block of data with a request type tag and see if the request succeeded.
Inso.