examples of programmatic use of sysctl
Peter Jeremy
peterjeremy at optushome.com.au
Fri Oct 12 17:28:58 PDT 2007
On 2007-Oct-12 16:11:12 -0700, Jack Vogel <jfvogel at 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.
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20071013/23c5db54/attachment.pgp
More information about the freebsd-current
mailing list