Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Sep 2000 10:28:22 -0600
From:      Warner Losh <imp@village.org>
To:        Nicolai Petri <npp@distortion.dk>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Creating a list of newbus devices. 
Message-ID:  <200009081628.KAA55850@harmony.village.org>
In-Reply-To: Your message of "Fri, 08 Sep 2000 13:01:23 %2B0200." <200009081101.NAA38560@distortion.dk> 
References:  <200009081101.NAA38560@distortion.dk>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200009081101.NAA38560@distortion.dk> Nicolai Petri writes:
: 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 :)

Yes.  You keep asking for parents until you get none.  The one that
has a null parent is the nexus.  You can then walk the tree from
there.  See kern/subr_bus.c for the routines to do this, and read the
assocaited man pages.

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009081628.KAA55850>