summaryrefslogtreecommitdiff
path: root/src/udev/udevadm.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-03-26 05:01:40 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-04-01 15:13:18 +0900
commitaa2b0d8d291a1f1dc2b50016c076ff8196989f84 (patch)
treed3e690218cc7fd5baefae764a079c4eefb15451c /src/udev/udevadm.h
parent209294ad24ef25beaae630a281d92960b6d0e28c (diff)
downloadsystemd-aa2b0d8d291a1f1dc2b50016c076ff8196989f84.tar.gz
udevadm: introduce new 'wait' command
Prompted by https://github.com/systemd/systemd/pull/22717#issuecomment-1067348496. The new command 'udevadm wait' waits for device or device symlink being created. This may be useful to wait for a device is processed by udevd after e.g. formatting or partitioning the device.
Diffstat (limited to 'src/udev/udevadm.h')
-rw-r--r--src/udev/udevadm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/udev/udevadm.h b/src/udev/udevadm.h
index 75ce633632..808294ec9d 100644
--- a/src/udev/udevadm.h
+++ b/src/udev/udevadm.h
@@ -13,6 +13,7 @@ int monitor_main(int argc, char *argv[], void *userdata);
int hwdb_main(int argc, char *argv[], void *userdata);
int test_main(int argc, char *argv[], void *userdata);
int builtin_main(int argc, char *argv[], void *userdata);
+int wait_main(int argc, char *argv[], void *userdata);
static inline int print_version(void) {
/* Dracut relies on the version being a single integer */