Subdirectories for devfs

Warner Losh imp at bsdimp.com
Tue Feb 19 19:10:54 UTC 2019


On Tue, Feb 19, 2019 at 9:30 AM A. D. Sharpe via freebsd-drivers <
freebsd-drivers at freebsd.org> wrote:

> Hello all,
>
> Does anyone know of a simple way to reorganize /dev contents into
> subdirectories based on the category of the device by manipulating
> devfs.rules & devfs.conf? I'd like to remove device nodes from /dev &
> reorganize it to look something like this:
>
> /dev/audio
> /dev/bus
> /dev/graphics
> /dev/input
>
> ...and so on.
>
> Or is this something that would require extensive changes to the driver
> sources?
>

Would require changes to both driver sources as well as to the programs
that use the driver nodes for different things. The effect of that will
vary from "hack one place in the code" to "extensive changes are needed in
dozens or hundreds of locations, many out of the tree".

What's the motivation?

Warner


More information about the freebsd-drivers mailing list