Re: Proper way for systemd service to wait mdev gvt device initialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
 
20.05.2019, 10:08, "Mantas Mikulėnas" <grawity@xxxxxxxxx>:
On Sun, May 19, 2019 at 9:50 PM Alex Ivanov <gnidorah@xxxxx> wrote:

Ideally I would to like to start this service when 0000:00:02.0 device appears in the system, but the problem is that /sys/bus/pci/devices/0000:00:02.0/mdev_supported_types/ tree is populated later, so my service will fail.

So the question what is the proper way to fix that.
 
If the driver doesn't populate its sysfs entries in time, maybe it at least generates 'change' uevents? (udevadm --monitor)
 
How would I know it? I don't see anything useful when trying suspend/resume sequence.
 
 
If there are no uevents either, well, there's nothing you can do from systemd's side. (Other than making a script that loops repeatedly checking "is it there yet? is it there yet?")
 
--
Mantas Mikulėnas
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux