diff options
author | Mao <littlecvr@gmail.com> | 2018-02-01 17:33:13 +0800 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-02-09 11:59:03 +0100 |
commit | 792cc203a67edb201073351f5c766fce3d5eab45 (patch) | |
tree | 4e3050518771ab7139574032b196bfea5f1b8843 /man/sd_bus_set_sender.xml | |
parent | 302af1c250c2c64f608187ab1efb8e4f1f442951 (diff) | |
download | systemd-792cc203a67edb201073351f5c766fce3d5eab45.tar.gz |
udevadm: allow trigger command to be synchronous
There are cases that we want to trigger and settle only specific
commands. For example, let's say at boot time we want to make sure all
the graphics devices are working correctly because it's critical for
booting, but not the USB subsystem (we'll trigger USB events later). So
we do:
udevadm trigger --action="add" --subsystem-match="graphics"
udevadm settle
However, we cannot block the kernel from emitting kernel events from
discovering USB devices. So if any of the USB kernel event was emitted
before the settle command, the settle command would still wait for the
entire queue to complete. And if the USB event takes a long time to be
processed, the system slows down.
The new `settle` option allows the `trigger` command to wait for only
the triggered events, and effectively solves this problem.
Diffstat (limited to 'man/sd_bus_set_sender.xml')
0 files changed, 0 insertions, 0 deletions