On 06/05/11 at 04:41am, hatem gamal elzanaty wrote:
> i have a problem to add a file to /proc does there is a simple way or 
> even a how to program syntax to do so the system reject to enter the 
> file i need to enter into the /proc file can any one tell me how to do 
> it or direct me to a how to a free method that is simple and accurate

Creating a file in /proc is going to require a kernel module or a
patched kernel. Chapter four[1] of _Linux Device Drivers_[2] describes
how to create a file in /proc.

That said, it's no longer considered good form to add anything to /proc.
The new home for this information is the /sys filesystem or debugfs.
LWN has a quick guide for using debugfs[3].

[1] https://lwn.net/images/pdf/LDD3/ch04.pdf
[2] https://lwn.net/Kernel/LDD3/
[3] https://lwn.net/Articles/334546/

-- 
Byron Clark

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to