Re: UART question

[email protected] (Michael van Elst)
Newsgroups gmane.os.netbsd.ports.arm
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (Vincent DEFERT) writes:

>The benefit of having only present devices under /dev is just immense!

With a regular static /dev directory, it hardly matters if there are
entries that aren't used.

There is a way around this.

If at boot time /dev/console doesn't exist, then the init process
will run the MAKEDEV script to mount a RAM disk on top of
/dev and create device nodes. A custom MAKEDEV could be used to
only create a minimal set and devpubd could be used to create
the rest on demand.

You would still created "unused" device nodes as a driver often
requires several entries (like the partition entries for disks).
That's not possible to handle "on demand" because devpubd will
only see when device units are created or destroyed, not if e.g.
a disk gets repartitioned.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.