extern int unlink_secure(const char *filename);
extern size_t buf_get_line(const char *buf, size_t buflen, size_t cur);
-/* udev commands */
-extern int udevmonitor(int argc, char *argv[]);
-extern int udevinfo(int argc, char *argv[]);
-extern int udevcontrol(int argc, char *argv[]);
-extern int udevtrigger(int argc, char *argv[]);
-extern int udevsettle(int argc, char *argv[]);
-extern int udevtest(int argc, char *argv[]);
+/* udevadm commands */
+extern int udevadm_monitor(int argc, char *argv[]);
+extern int udevadm_info(int argc, char *argv[]);
+extern int udevadm_control(int argc, char *argv[]);
+extern int udevadm_trigger(int argc, char *argv[]);
+extern int udevadm_settle(int argc, char *argv[]);
+extern int udevadm_test(int argc, char *argv[]);
#endif
return 0;
}
-int udevcontrol(int argc, char *argv[])
+int udevadm_control(int argc, char *argv[])
{
struct udev_ctrl *uctrl;
const char *env;
return 0;
}
-int udevinfo(int argc, char *argv[])
+int udevadm_info(int argc, char *argv[])
{
int option;
struct udevice *udev = NULL;
return NULL;
}
-int udevmonitor(int argc, char *argv[])
+int udevadm_monitor(int argc, char *argv[])
{
struct sigaction act;
int option;
printf("\n\n");
}
-int udevsettle(int argc, char *argv[])
+int udevadm_settle(int argc, char *argv[])
{
char queuename[PATH_SIZE];
char filename[PATH_SIZE];
return rc;
}
-int udevtest(int argc, char *argv[])
+int udevadm_test(int argc, char *argv[])
{
int force = 0;
const char *action = "add";
}
}
-int udevtrigger(int argc, char *argv[])
+int udevadm_trigger(int argc, char *argv[])
{
int failed = 0;
const char *sockpath = NULL;
static const struct command cmds[] = {
{
.name = "info",
- .cmd = udevinfo,
+ .cmd = udevadm_info,
.help = "query sysfs or the udev database",
},
{
.name = "trigger",
- .cmd = udevtrigger,
+ .cmd = udevadm_trigger,
.help = "request events from the kernel",
},
{
.name = "settle",
- .cmd = udevsettle, "",
+ .cmd = udevadm_settle, "",
.help = "wait for the event queue to finish",
},
{
.name = "control",
- .cmd = udevcontrol,
+ .cmd = udevadm_control,
.help = "control the udev daemon",
},
{
.name = "monitor",
- .cmd = udevmonitor,
+ .cmd = udevadm_monitor,
.help = "listen to kernel and udev events",
},
{
.name = "test",
- .cmd = udevtest,
+ .cmd = udevadm_test,
.help = "simulation run",
.debug = 1,
},