Subject: Re: testing presence of a device (was sun-lamp CVS commits)
To: None <current-users@NetBSD.ORG>
From: None <is@Beverly.Rhein.DE>
List: current-users
Date: 10/06/1995 23:17:09
Chris G Demetriou (Chris_G_Demetriou@BALVENIE.PDL.CS.CMU.EDU) wrote:
: note that you also need some common name like "index", to tell
: you what's available at that level.  e.g. (on an AlphaStation 200):
: 
: 	variable		return
: 	--------		------
: 	dev.index		"mainbus0"
: 	dev.mainbus0.index	"cpu0 apecs0"
: 	dev.mainbus0.apecs0.index
: 				"pci0"
: 	dev.mainbux0.apecs0.pci0.index
: 				"ppb0 de0 ncr0 sio0 tga0"
: 	dev.mainbus0.apecs0.pci0.de0.index
: 				"media macaddr"
: 	[ ... ]
: 
: and probably could even have machine-independent code to do all of the
: hierarchy handling (based on config parent/child relationships).
: 
: alternately, one could have devices/busses that support the interface
: attach themselves, and present a flat namespace -- that could be
: easier, in some ways.

Hm... why not write a filesystem to do the interface to outside the kernel?

	Ignatios Souvatzis