summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-device/device-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-09-04 15:59:17 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-09-04 16:59:17 +0300
commit9a39e1ce314d1a6f8a754f6dab040019239666a9 (patch)
tree0fb3be51929aecc61c55f69985f026a5835083fc /src/libsystemd/sd-device/device-internal.h
parentf4b0b3f1889c820993e323bea5f0572f8f377418 (diff)
downloadsystemd-9a39e1ce314d1a6f8a754f6dab040019239666a9.tar.gz
Add handling for bind/unbind actions (#6720)
Newer kernels will emit uevents with "bind" and "unbind" actions. These uevents will be issued when driver is bound to or unbound from a device. "Bind" events are helpful when device requires a firmware to operate properly, and driver is unable to create a child device before firmware is properly loaded. For some reason systemd validates actions and drops the ones it does not know, instead of passing them on through as old udev did, so we need to explicitly teach it about them.
Diffstat (limited to 'src/libsystemd/sd-device/device-internal.h')
-rw-r--r--src/libsystemd/sd-device/device-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd/sd-device/device-internal.h b/src/libsystemd/sd-device/device-internal.h
index f4783deef8..0505a27304 100644
--- a/src/libsystemd/sd-device/device-internal.h
+++ b/src/libsystemd/sd-device/device-internal.h
@@ -104,6 +104,8 @@ typedef enum DeviceAction {
DEVICE_ACTION_MOVE,
DEVICE_ACTION_ONLINE,
DEVICE_ACTION_OFFLINE,
+ DEVICE_ACTION_BIND,
+ DEVICE_ACTION_UNBIND,
_DEVICE_ACTION_MAX,
_DEVICE_ACTION_INVALID = -1,
} DeviceAction;