What options do we have for communication between a user program and a Linux Kernel Module? -


I am a new visitor to programming Linux kernel modules. So far the content I have read, I have found that there are 3 ways to request services for the user program or to communicate with the Linux kernel module

  1. In a device file / dev < / L>
  2. A file in the / proc file system
  3. ioctl () call

Question: We have other options for communicating between user programs and Linux What are Colonel Modules?

your option 3) is actually a sub-option option 1) - Ioctl () A device file ( reading () and write () are a way of communicating normally.)

Thoughts There are two other ways to do this:

  • sysfs filesystem;
  • Netlink Sockets.

Comments