-   Linux - Software (
-   -   add custom sysctl key (

ibaniski 11-05-2008 10:54 AM

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?


reddazz 11-06-2008 03:53 AM

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.

All times are GMT -5. The time now is 01:05 AM.