Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2019 14:37:32 -0700
From:      Ian Lepore <ian@freebsd.org>
To:        "Apollo D. Sharpe, Sr." <demetrioussharpe@netscape.net>, Hans Petter Selasky <hps@selasky.org>, freebsd-usb@freebsd.org
Subject:   Re: Questions about the USB HID device drivers
Message-ID:  <4b8043dce0fcb0c386f0666b4e1461b4fe4ddad0.camel@freebsd.org>
In-Reply-To: <d792f27e-5e55-e5ca-eb89-b7a8704200e0@netscape.net>
References:  <fd7883c8-604e-e7d7-b135-d1d957938e7c@netscape.net> <9c6a87dd-cf7c-d0eb-82f1-5e904baaf05f@selasky.org> <325834a2-d9f1-a1f4-dff1-7f724aeb4907@netscape.net> <6762c7c9-f9dc-f7d2-0b1f-c2f6e2816cd7@selasky.org> <3724cc29-b682-2395-bd95-cbfa418ad9f2@netscape.net> <0cbc66cd-9007-878e-8bc3-f623364729d4@selasky.org> <d792f27e-5e55-e5ca-eb89-b7a8704200e0@netscape.net>

index | next in thread | previous in thread | raw e-mail

On Mon, 2019-02-18 at 15:03 -0600, Apollo D. Sharpe, Sr. via freebsd-
usb wrote:
> On 2/18/19 3:26 AM, Hans Petter Selasky wrote:
> > Each devicename has a uniq prefix followed by a uniq unit number.
> 
> So, we just end up dumping ALL device nodes in /dev...
> 
> 
> > Character device nodes are automatically created. However it is 
> > possible for user-space applications to create symbolic links 
> > afterwards in /dev .
> 
> ...and leave it to user-space to create the hierarchy within /dev?
> Is 
> there a technical reason that kernel drivers don't automatically 
> subscribe to a hierarchy, or is this just historic inertia? It seems 
> funny to me that such decisions are left to user-space applications.
> 
> 

Not to userland applications so much as to sysadmin-controlled
configuration which is applied from userland during system startup and when new devices are attached. See the manpage for devfs.conf.

>From the kernel side, some subsystems do create a hierarchy (or at
least a subdir for a set of related devices), and others don't. There
is no system-wide policy about it either way.

-- Ian



help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4b8043dce0fcb0c386f0666b4e1461b4fe4ddad0.camel>