How to communicate with a Linux kernel module from user space without littering /dev with new nodes?

后端 未结 6 1726
孤城傲影
孤城傲影 2020-12-28 21:26

What are the ways to communicate with a kernel module from user space? By communication i mean sending information and commands between the kernel module and a user space pr

6条回答
  •  清歌不尽
    2020-12-28 22:20

    There's also the /sys filesystem (sysfs):

    Sysfs exports information about devices and drivers from the kernel device model to userspace, and is also used for configuration.

    (from Wikipedia)

提交回复
热议问题