:: Re: [DNG] vdev in chimaera
Kezdőlap
Delete this message
Reply to this message
Szerző: aitor
Dátum:  
Címzett: dng
Tárgy: Re: [DNG] vdev in chimaera
Hi Karl,

On 25/5/22 23:04, karl@??? 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.