diff options
Diffstat (limited to 'udev/udevadm-info.c')
-rw-r--r-- | udev/udevadm-info.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c index a6387d07ae..4053436fe6 100644 --- a/udev/udevadm-info.c +++ b/udev/udevadm-info.c @@ -275,7 +275,7 @@ static void cleanup_db(struct udev *udev) } } -int udevadm_info(struct udev *udev, int argc, char *argv[]) +static int uinfo(struct udev *udev, int argc, char *argv[]) { struct udev_device *device = NULL; bool root = 0; @@ -556,3 +556,9 @@ exit: udev_device_unref(device); return rc; } + +const struct udevadm_cmd udevadm_info = { + .name = "info", + .cmd = uinfo, + .help = "query sysfs or the udev database", +}; |