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.
|
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. |