Equivalent of 'Registry' structure of Windows in Linux
Hi
Is there any equivalent of the registry structure of Windows in Linux. I am working on device drivers and while working on Windows I used the 'registry' to store certain information that was stored by one driver and used by another driver at a later point in time. How do i achieve this in Linux? Is creating a file the only way or is there any structure similiar to 'registry' which can be used? |
There's no central registry, programs have their own cfg files as needed (in general).
However, for device drivers loaded into the kernel, see /etc/sysctl.conf. Also man sysctl |
Hey Chris,
Thanks a lot for the reply. I checked out the sysctl.conf file and the sysctl command. But i still dont understand how do i add a parameter. I assume(correct me if i am wrong) all the parameters are stored in the /proc/sys/ directory and only those entries can be manipulated using the sysctl command or the sysctl.conf file. But what if i want to create a new parameter and play around with it? |
I dont know if this book will help: Linux Device Drivers:
http://lwn.net/Kernel/LDD3/ |
You can add options in the /etc/modprobe.conf file.
Using the `modinfo' program, you can discover which options a kernel device driver accepts. Other than that, the source code or header file or kernel Documentation may give information as well. |
All times are GMT -5. The time now is 02:21 PM. |