Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-29-2009, 02:08 AM   #1
LQ Newbie
Registered: Apr 2009
Location: Bengaluru
Distribution: Ubuntu 8.10
Posts: 10

Rep: Reputation: 0
Equivalent of 'Registry' structure of Windows in Linux

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?
Old 04-29-2009, 02:35 AM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,412

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
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.
man sysctl
Old 04-29-2009, 06:37 AM   #3
LQ Newbie
Registered: Apr 2009
Location: Bengaluru
Distribution: Ubuntu 8.10
Posts: 10

Original Poster
Rep: Reputation: 0
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?
Old 04-29-2009, 06:52 AM   #4
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,571
Blog Entries: 56

Rep: Reputation: Disabled
I dont know if this book will help: Linux Device Drivers:
Old 04-29-2009, 06:56 AM   #5
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
linux vs windows, virus, spyware, registry, conspiracy icecubeflower Slackware 21 04-03-2009 06:04 PM
Windows Registry in Linux slackr007 Linux - Newbie 1 02-09-2005 03:47 PM
Windows Registry Extraction fom Linux. Le_Petit_Lapin Linux - Newbie 9 08-29-2004 02:46 PM
Linux equivalent to windows registry? marri Linux - Newbie 10 07-22-2004 01:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration