Re: something about reading kenel information ?

2008-04-25 Thread Dave Shield
2008/4/25 qugjie <[EMAIL PROTECTED]>: > There is some examples through reading special files get info? There are *hundreds* of examples of this approach. Please see the files I mentioned earlier. Dave - This SF.net email i

Re: something about reading kenel information ?

2008-04-25 Thread qugjie
There are some line In the AGENT.txt file as follow: 727 line Alternatively, there may be ioctl calls on suitable devices, specific system calls, or special files that can be read to provide the necessary information. There is some examples through reading special files get info? --

Re: something about reading kenel information ?

2008-04-25 Thread Dave Shield
2008/4/25 qugjie <[EMAIL PROTECTED]>: > #ifdef UDPSTAT_SYMBOL > (this macro is define in file include/net-snmp/system/generic.h ) > auto_nlist(UDPSTAT_SYMBOL, 0, 0); > #endif > > what has done this routine ? This locates the UDPSTAT_SYMBOL within the running kernel, ready for when i

something about reading kenel information ?

2008-04-25 Thread qugjie
hi,everyone: Thanks to your help the last question have been resloved, but the new one appeared. I'm extending the net-snmp Agent, OS core is linux 2.6.22 , CPU is MIPS architecture. I want to read something about the kenel space. This can be done using