Re: sysctl(3) interface



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"



Relevant Pages

  • Re: sysctl(3) interface
    ... better insight into how to use the sysctlinterface. ... It's using an oid of 0 and 2 to get something, then it comes up with 440 ... 0,2 - get first sysctl node/leaf? ...
    (freebsd-hackers)
  • Which is the OID for the error CRC on interface router cisco
    ... if I cant make any query snmp for see the error CRC in ... specific interface to the router Cisco. ... Which is the OID? ...
    (comp.dcom.sys.cisco)
  • SQLCL.EXE virus
    ... Just doing a search on google for 'sqlcl' references many ... threads about SQL command line interface. ... no insight as to why it would be using 99% ...
    (microsoft.public.security.virus)
  • Re: problems with inheritance???
    ... this is a little confusing because a "form" is not an interface, ... Perhaps with some code example we can get a better insight into what your goal really is. ... You can't get the properties of a Windows Form class by having a class derive from another class that doesn't inherit itself from System.Windows.Forms.Form. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Networking Problem
    ... Daniel Rudy writes: ... > to 5.3 and how the network functionality just will not work properly. ... That message is in the interface initialization code, ...
    (comp.unix.bsd.freebsd.misc)