Hi Karl,

On 25/5/22 23:04, k...@aspodata.se wrote:
It would be nice if one could choose static /dev (as it was before udev).
It is no problem running with a static /dev if you compile your own
kernel.

vdevd already has a "run once" option, passing the argument --once (either -1), 
maybe with testing purposes in mind.
In doing so, vdev by-passes the poll() system call in the line 525 of:

https://github.com/jcnelson/vdev/blob/master/vdevd/os/linux.c  
<https://github.com/jcnelson/vdev/blob/master/vdevd/os/linux.c>

where the daemon -if not- would remain waiting for next events, once the 
scanning of the contents of `/sys` has been carried out.
So generated `/dev` is static and, as Jude Nelson explains in his `how-to-test.md` 
file, "running the daemon again will update the
previously-generated static `/dev` with only the device files that correspond to 
hardware plugged into your computer."

Hope this helps,

Aitor.


_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to