> Is it possible from kernel mode to create a list of newbus devices ? And
> how do I'll get a pointer to the new-bus root (or whatever it's tecnical
> name is :)


extern devclass_t nexus_devclass;

        nexus = devclass_get_device(nexus_devclass, 0);

static void
device_enumerate_children(device_t dev)
{
        device_t        *devp;
        int             ndevs, i;

        if (device_get_children(dev, &devp, &ndevs) || (ndevs == 0))
                return;
        for (i = 0; i < ndevs; i++, devp++)
                device_enumerate_children(*devp);
}

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to