I am a new comer to Linux Kernel Module programming. From the material that I have read so far, I have found that there are 3 ways for a user program to request services or to communicate with a Linux Kernel Module
- a device file in /dev
- a file in /proc file system
- ioctl() call
Question: What other options do we have for communication between user program and linux kernel module?
Your option 3) is really a sub-option of option 1) –
ioctl()is one way of interacting with a device file (read()andwrite()being the usual ways).Two other ways worth considering are:
sysfsfilesystem;