From owner-freebsd-config Mon Feb 21 2:54: 5 2000 Delivered-To: freebsd-config@freebsd.org Received: from mail.di.uminho.pt (mail.di.uminho.pt [193.136.20.67]) by hub.freebsd.org (Postfix) with SMTP id 2D51237BBFE for ; Mon, 21 Feb 2000 02:54:00 -0800 (PST) (envelope-from jose@di.uminho.pt) Received: (qmail 29809 invoked from network); 21 Feb 2000 11:10:11 -0000 Received: from bogalhinho.di.uminho.pt (HELO di.uminho.pt) (jose@193.136.20.38) by mail.di.uminho.pt with SMTP; 21 Feb 2000 11:10:11 -0000 Message-ID: <38B127F0.48C04CB0@di.uminho.pt> Date: Mon, 21 Feb 2000 11:56:32 +0000 From: =?iso-8859-1?Q?Jos=E9=20Lu=EDs?= Faria Organization: Universidade do Minho-Departamento de =?iso-8859-1?Q?Inform=E1tica?= X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-config@freebsd.org, freebsd-current@freebsd.org Subject: Kernel Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk 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 ? Thank you very much. P.S. I'm sorry my english. -- :) cumprimentos -------------------------------- Jose Luis Faria Administrador de Sistemas Universidade do Minho - Departamento de Informática Campus de Gualtar 4710-057 Braga Portugal tel.: +351 253604440 Fax:+351 253604471 http://admin.di.uminho.pt/~jose To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message From owner-freebsd-config Tue Feb 22 17: 0:18 2000 Delivered-To: freebsd-config@freebsd.org Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by hub.freebsd.org (Postfix) with ESMTP id 9D25F37B81C; Tue, 22 Feb 2000 17:00:12 -0800 (PST) (envelope-from bmilekic@dsuper.net) Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by oracle.dsuper.net (8.9.3/8.9.3) with ESMTP id TAA26497; Tue, 22 Feb 2000 19:59:56 -0500 (EST) Date: Tue, 22 Feb 2000 19:59:55 -0500 (EST) From: Bosko Milekic To: =?iso-8859-1?Q?Jos=E9=20Lu=EDs?= Faria Cc: freebsd-config@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: Kernel In-Reply-To: <38B127F0.48C04CB0@di.uminho.pt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk =09Try looking at the sysctl(3) interface. Issue `sysctl -A' and note one of the exported variable names. Then, search the code to see how it's setup. This is most probably what you're looking for. On Mon, 21 Feb 2000, [iso-8859-1] Jos=E9 Lu=EDs Faria wrote: >Hello=20 > >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 ? > >Thank you very much. > > >P.S. I'm sorry my english. > > >--=20 > > :) cumprimentos >-------------------------------- > Jose Luis Faria > Administrador de Sistemas > Universidade do Minho - Departamento de Inform=E1tica > Campus de Gualtar > 4710-057 Braga > Portugal > tel.: +351 253604440 Fax:+351 253604471 > http://admin.di.uminho.pt/~jose > <--------------------------------------------------------------------------= > Bosko Milekic * bmilekic@dsuper.net * http://pages.infinit.net/bmilekic/ <--------------------------------------------------------------------------= > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message