/proc interface

Jan 26, 2004 1 Replies

Hi I would like to write a module that its only mission is to interface through the /proc some internal information. The user will be able to 'cat /proc/my_module' and the relevant information will be printed to the screen. Should my module be written as a caracter device driver, or could it be just a simple module. Can you send/link me to any simple example? As I understand, the module should call create_proc_entry() - Am I right? What kind of operation should it implement? Any help will be very helpful Thanks Hagit


Please read "Linux device drivers" by Rubini. I even found it available online.

-Michael

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required