Date: Sat, 13 Oct 2007 10:28:55 +1000 From: Peter Jeremy <peterjeremy@optushome.com.au> To: Jack Vogel <jfvogel@gmail.com> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: examples of programmatic use of sysctl Message-ID: <20071013002855.GD93545@turion.vk2pj.dyndns.org> In-Reply-To: <2a41acea0710121611n4bb8d00egc104118cf7711537@mail.gmail.com> References: <2a41acea0710121611n4bb8d00egc104118cf7711537@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--gatW/ieO32f1wygP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Oct-12 16:11:12 -0700, Jack Vogel <jfvogel@gmail.com> wrote: >In my PTP/IEEE 1588 implementation I was considering using sysctl >to pass data in and out of the driver and it needs to be from some app >program not interactive. > >I was just wondering if anyone can point me at anything besides the >sysctl command that is doing this? If you mean exchanging data in general between userland and kernel then rummaging though the source looking for sysctlbyname() (or sysctl() or sysctlnametomib()) will turn up lots of hits. Without knowing exactly what you are trying to achieve, I can't be absolutely certain but potentially interesting places to look would be conscontrol(8), dumpon(8), ipcs(1) etc. Note that most of the *stat commands, as well as ps, use sysctl rather than grovelling around in /dev/kmem. --=20 Peter Jeremy --gatW/ieO32f1wygP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHEBFH/opHv/APuIcRAq0EAJ411gISBnPttpkvbx+Uca3fMgLf+wCeNUS/ ggCc8GZGBfdTV1nfUnPMn4k= =BJfC -----END PGP SIGNATURE----- --gatW/ieO32f1wygP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071013002855.GD93545>