Linux: how to create a sysctl variable?

This is a discussion on Linux: how to create a sysctl variable? within the Linux Programming forums, part of the Platform Specific Boards category; Hello, I have a debian kernel 2.6.32 machine and i making changes to the tcp stack. To make this i ...

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    1

    Linux: how to create a sysctl variable?

    Hello,
    I have a debian kernel 2.6.32 machine and i making changes to the tcp stack.
    To make this i need to create a new sysctl variable.

    can anybody tell me in which files i have to declare, define.. the variable and what are the steps to do so?

    Thanks in advance

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,340
    I don't know, but since you know what they are, then perhaps you could find other examples of sysctl variables in the code base, and see how they do it.

    Then it's follow the examples you find.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating a sysctl variable ?
    By taupin in forum C Programming
    Replies: 4
    Last Post: 06-28-2008, 05:21 PM
  2. What is wrong with my sysctl()?
    By Overworked_PhD in forum Linux Programming
    Replies: 4
    Last Post: 12-08-2007, 12:56 PM
  3. create variable size arrays
    By s-men in forum C Programming
    Replies: 6
    Last Post: 08-27-2007, 07:45 PM
  4. Create folder from variable name
    By nmullane in forum C++ Programming
    Replies: 4
    Last Post: 09-25-2005, 06:41 AM
  5. system.map create/modify during linux life-time
    By pavmarc in forum Linux Programming
    Replies: 2
    Last Post: 08-17-2005, 09:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21