Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Closed Thread
  Search this Thread
Old 11-05-2008, 10:54 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 10

Rep: Reputation: 0
add custom sysctl key

edit: Will move thread to Linux - Kernel.

I am writing a module, and I need an easy way to set parameters to it. Using sysctl seems to be an easy and convenient way of doing ti. The only problem: I can't do it .

Say I want to add a length parameter to /proc/sys/net/mymod/length of value 10. When I execute
PHP Code:
sysctl -w net.mymod.length=10 
I get the following error "net.mymod.length is an unknown key".

So my question is whether it is at all possible to use sysctl to set certain parameters for my module? If so, what do I have to do to create a custom key? If not, what would be a good alternative?


Last edited by ibaniski; 11-05-2008 at 11:15 AM. Reason: inappropriate forum
Old 11-06-2008, 03:53 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closed Thread

key, sysctl, unknown

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
Add a custom-built rpm to a repository neildomo Red Hat 6 10-15-2008 10:11 PM
SAX2 - How to add a custom modeline? mr_r SUSE / openSUSE 2 07-13-2006 08:03 AM
How to add RAID driver to custom install CD? Arodef Linux - Hardware 0 04-05-2006 01:48 AM
How can I add custom data to my executable bestofmed Programming 3 07-29-2004 04:24 AM
sysctl permissions error on key vm.freepages DavidPhillips Linux - General 2 06-16-2001 11:48 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:35 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
Open Source Consulting | Domain Registration