File I/O in a Linux kernel module

后端 未结 6 1297
闹比i
闹比i 2020-11-30 04:53

I\'m writing a Linux kernel module that needs to open and read files. What\'s the best way to accomplish that?

6条回答
  •  野性不改
    2020-11-30 05:35

    /proc filesystem is also good for private use, and it's easy.
    http://www.linuxtopia.org/online_books/Linux_Kernel_Module_Programming_Guide/x773.html

提交回复
热议问题