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

后端 未结 6 1714
孤城傲影
孤城傲影 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:24

    Third one is add a new syscall, but the two you have written are the preferred ones, I think. I've found this document that might help, but I still think this option is unadvised: http://www.csee.umbc.edu/courses/undergraduate/CMSC421/fall02/burt/projects/howto_add_systemcall.html

    Another acceptable option might be sharing memory.

提交回复
热议问题