Thread: Creating a sysctl variable ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    3

    Creating a sysctl variable ?

    Hi,

    I'd need to create a variable that keeps track of something happening in my function. So I don't want my variable to be initialized each time the function is called, I want it to stay.

    I guess I can create a sysctl variable for that purpose. How do I do that ?

    The thing is, the function is part of the linux TCP stack, and I don't know where the most global variable are declared. I'm a beginner in C programming & Linux.
    Last edited by taupin; 06-28-2008 at 05:02 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C variable
    By webstarsandeep in forum C Programming
    Replies: 1
    Last Post: 10-23-2008, 01:26 AM
  2. Static Local Variable vs. Global Variable
    By arpsmack in forum C Programming
    Replies: 7
    Last Post: 08-21-2008, 03:35 AM
  3. Problem with a char variable set as a letter
    By 7smurfs in forum C++ Programming
    Replies: 6
    Last Post: 12-10-2004, 01:25 PM
  4. Static global variable acting as global variable?
    By Visu in forum C Programming
    Replies: 2
    Last Post: 07-20-2004, 08:46 AM
  5. creating a filename based on a variable
    By Waldo2k2 in forum C++ Programming
    Replies: 3
    Last Post: 05-22-2002, 05:27 PM