Subject: Re: Referencing child devices from prop dictionary
To: Jared D. McNeill <jared.mcneill@alcatel-lucent.com>
From: Jachym Holecek <freza@NetBSD.org>
List: tech-kern
Date: 06/14/2007 20:25:54
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

Only the (easy) ioctl() part is missing IIRC. I think the ability to
walk device tree could be useful for other (in-kernel) consumers...

	-- Jachym