LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   command to write into proc entry (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-write-into-proc-entry-669105/)

pravin.embedded 09-11-2008 01:25 AM

command to write into proc entry
 
In Linux 2.6.18 kernel i am writing a kernel module which create a proc entry named tasklist by using create_proc_entry. In that tasklist file i want to write some structure variables. which command i should use in this module. becuase "write" will not work in kernel module.

pixellany 09-11-2008 08:03 AM

If I understand it correctly, /proc is a set of virtual files allowing you to see data structures in RAM. Is "create_proc_entry" a library function? If so, I am guessing that--once the structure is declared--simply assigning a value to a member of the struct will cause it to appear in /proc.

Some experiments should show you how it works.


All times are GMT -5. The time now is 01:59 AM.