:: Re: [DNG] vdev
Startseite
Nachricht löschen
Nachricht beantworten
Autor: Didier Kryn
Datum:  
To: dng
Betreff: Re: [DNG] vdev
Le 05/08/2016 13:28, richard lucassen a écrit :
> Anyone here running vdev? I just looked around a bit, but there seems to
> be little activity:
>
> https://git.devuan.org/unsystemd/vdev/activity
>
> And anyone running good old MAKEDEV here?
>
> R.
>


     No news from Jude for almost one year :-(


     I'm partial time reading documentation and sources and considering 
rolling my own hotplugger, simpler than vdev - Jude has done an enormous 
work and vdev is a complex software with hundreds of scripts, too 
complex for me.


     Reading uevents from netlink and parsing them is easy, but I'm not 
sure to know what to do with these events. My first conclusion is that
     when there is MODALIAS=something, then I just have to modprobe a 
module's alias
     when there is FIRMWARE=something, I just need to transfer the 
firmware by some well defined API
     otherwise it is more complicated because there are many different 
cases (not all drivers provide the same uevent contents); but the job is 
to create/delete a device file, and set owner/permissions and symlinks; 
but some devices are neither char nor block (eg network devices) and I 
don't know what to do with them.


     For this reason, I'm tempted to clone mdev and only change the way 
it is invoked. mdev is spawned for every uevent through the 
/proc/sys/kernel/hotplug mechanism; instead I would prefer one 
long-lasting daemon reading uevents from netlink. The design of mdev 
makes full sense for embeded devices, but not for others.


     I'm sure mdev is very well written, because it has been written, 
maintained, and reviewed by highly skilled professionals. I have also 
found a netlink reader at Skarnet, which is certainly written with great 
care but does not seem very usefull since it just forwards the uevents 
to standard output as they come; but It might be instructive to look if 
it uses any special trick to read the netlink.


     Any suggestions are welcome - there are still a lot of devices I 
don't know anything about.


     Didier