More leaves on the device tree ?
Poul-Henning Kamp
phk at phk.freebsd.dk
Sat Dec 22 23:44:50 PST 2007
In message <20071222.234526.246317277.imp at bsdimp.com>, "M. Warner Losh" writes:
>In message: <200712202005.33263.hselasky at c2i.net>
> Hans Petter Selasky <hselasky at c2i.net> 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 at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-arch
mailing list