Re: sysctl(3) interface
- From: des@xxxxxx (Dag-Erling Smørgrav)
- Date: Wed, 31 Jan 2007 11:10:26 +0100
Daniel Rudy <dr2867@xxxxxxxxxxx> writes:
I've been taking apart and analyzing the sysctl(8) program to gain a
better insight into how to use the sysctl(3) interface. [...]
It's using an oid of 0 and 2 to get something, then it comes up with 440
and then a sequence of numbers that are incrementing in a peculiar
pattern.
sysctl(8) uses undocumented interfaces to a) enumerate the nodes in
the sysctl tree and b) obtain the name of a node, given its OID.
So, my question is, how do I walk the tree to get the PnP info for all
the devices in the system?
man 3 devinfo
DES
--
Dag-Erling Smørgrav - des@xxxxxx
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- References:
- sysctl(3) interface
- From: Daniel Rudy
- sysctl(3) interface
- Prev by Date: Re: a question regarding <sys/shm.h>
- Next by Date: Re: a question regarding <sys/shm.h>
- Previous by thread: sysctl(3) interface
- Next by thread: how to determine if we are building lib32 in Makefile?
- Index(es):
Relevant Pages
|