Re: More leaves on the device tree ?



In message <20071222.234526.246317277.imp@xxxxxxxxxx>, "M. Warner Losh" writes:
In message: <200712202005.33263.hselasky@xxxxxxx>
Hans Petter Selasky <hselasky@xxxxxxx> writes:
: "make_dev" takes an additional "device_t parent_device" argument and creates a
: child device with some magic flags set.

What do you do for all the devices in /dev/ for which there is no
device_t parent?

I second Warners comments here.

device_t is a handle for a hardware, dev_t is for a device in /dev,
they are very different thing and have no reasonable mapping between
them ([0..N]:[0..M])

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@xxxxxxxxxxx | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"