LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Equivalent of 'Registry' structure of Windows in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/equivalent-of-registry-structure-of-windows-in-linux-722407/)

akshaynm87 04-29-2009 01:08 AM

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?

chrism01 04-29-2009 01:35 AM

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

akshaynm87 04-29-2009 05:37 AM

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?

brianL 04-29-2009 05:52 AM

I dont know if this book will help: Linux Device Drivers:
http://lwn.net/Kernel/LDD3/

jschiwal 04-29-2009 05:56 AM

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.