LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 0
add custom sysctl key


edit: Will move thread to Linux - Kernel.
---
Hi.

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?

Thanks,
i.b.

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

Rep: Reputation: 73
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

Tags
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 09:11 PM
SAX2 - How to add a custom modeline? mr_r Suse/Novell 2 07-13-2006 07:03 AM
How to add RAID driver to custom install CD? Arodef Linux - Hardware 0 04-05-2006 12:48 AM
How can I add custom data to my executable bestofmed Programming 3 07-29-2004 03:24 AM
sysctl permissions error on key vm.freepages DavidPhillips Linux - General 2 06-16-2001 10:48 AM


All times are GMT -5. The time now is 12:18 PM.

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