Date: Sun, 23 Dec 2007 07:44:46 +0000 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: "M. Warner Losh" <imp@bsdimp.com> Cc: freebsd-arch@freebsd.org, alfred@freebsd.org, hselasky@c2i.net Subject: Re: More leaves on the device tree ? Message-ID: <5386.1198395886@critter.freebsd.dk> In-Reply-To: Your message of "Sat, 22 Dec 2007 23:45:26 MST." <20071222.234526.246317277.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20071222.234526.246317277.imp@bsdimp.com>, "M. Warner Losh" writes: >In message: <200712202005.33263.hselasky@c2i.net> > Hans Petter Selasky <hselasky@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@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5386.1198395886>