Hello -
I have a small process that runs as a daemon. I want to use the /procfs mechanism to monitor its status (read only). If I learn what I'm doing I might also like to use it to control the process (read-write).
I've seen code snippets that, to a non-newbie, probably illustrate how to accomplish my objective. But when I cut, paste, and 'make' these snippets I get scads of errors. The piece I think is most nearly useful to me is written by Erik Mouw and called procfs_example.c, but it doesn't come close to compiling.
Someone please point me at a simple piece of code, its makefile, and maybe a HOWTO. I will be MOST appreciative. BTW - It's probably important that you know my kernel level is: 2.6.9-1.6_FC2.WKD_tr_mts_1 #1
Thank you --
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/