Subject: Re: Referencing child devices from prop dictionary
To: Jachym Holecek <freza@NetBSD.org>
From: Jared D. McNeill <jared.mcneill@alcatel-lucent.com>
List: tech-kern
Date: 06/14/2007 14:32:52
On 14-Jun-07, at 2:25 PM, Jachym Holecek wrote:
> Hello,
>
> # Jared D. McNeill 2007-06-14:
> > I have an application that needs to be able to walk the device tree
> > from userspace. Is the attached patch OK to commit?
>
> I like the idea but not the implementation -- why not remember child
> device_t instead, and let some ioctl() create the proplib "view" on
> demand? I've posted some code that partially solves the problem:
>
>   http://mail-index.netbsd.org/tech-kern/2006/07/21/0020.html
>
This increases complexity in my case as I'm walking the tree looking  
for devices that have a specific property :)
> Only the (easy) ioctl() part is missing IIRC. I think the ability to
> walk device tree could be useful for other (in-kernel) consumers...
>
On the drvctl device node, or somewhere else?

Cheers,
Jared