How do I get a new entry in the /proc directory
sorry for this (eventually silly) question, but at the moment I have no idea for the following problem:
During Linux Kernel boot up, I created a variable which gets filled via I2C Bus. At the moment I added this routine "quick and dirty" to the eth init routine. A "printk" of the Variable shows, that it is filled in the right way. Now I want to read this Variable from Userspace. I heard to do this via the /proc directory. I only want to read the value of the variable. So no write to the Variable is needed.
Target platform is a ARM embedded processor.
How can I create a new /proc entry during Kernelboot and how can I link my variable to this new entry!?
I think my second problem is to separate the "fill variable routine" from the eth init function... :-(
Thanks, and sorry for my bad English...