* Jos� Lu�s Faria <[EMAIL PROTECTED]> [000221 03:25] wrote:
> Hello 
> 
> I'm creating a litle update to a freebsd 3.4 kernel.
> My program is for account some data: number of
> packets by class, number of packets dropped by class, etc.
> Now I need to pass this values to another program wich in X-Window
> display this values on-line. After, I want to save this values
> in a file.
> 
> I need some docs about how I can do this.
> Which are the primitives in the kernel to do this.
> I use the printf to put this data in /var/log/messages.
> This inappropriate, I dont want this. This is only for testing now.
> 
> Can you help me ?

Perhaps you'd like to use sysctl nodes as counters, they allow a 
pretty clean exporting of kernel internal variables.

try "man sysctl" and looking at various other uses of sysctls in 
the kernel as counters.

good luck,
-Alfred


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to