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
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?
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 12:57 AM.|