struct name_entry *name_loop;
int rc = 0;
- logging_init("udevinfo");
- udev_config_init();
- sysfs_init();
-
while (1) {
option = getopt_long(argc, argv, "aed:n:p:q:rxPVh", options, NULL);
if (option == -1)
exit:
udev_device_cleanup(udev);
- sysfs_cleanup();
- logging_close();
return rc;
}
int rc = 1;
int seconds;
- logging_init("udevsettle");
- udev_config_init();
dbg("version %s\n", VERSION);
- sysfs_init();
while (1) {
option = getopt_long(argc, argv, "t:h", options, NULL);
}
exit:
- sysfs_cleanup();
- logging_close();
return rc;
}
};
info("version %s\n", VERSION);
- udev_config_init();
if (udev_log_priority < LOG_INFO) {
char priority[32];
"some values may be different, or not available at a simulation run.\n"
"\n");
- sysfs_init();
udev_rules_init(&rules, 0);
/* remove /sys if given */
exit:
udev_rules_cleanup(&rules);
- sysfs_cleanup();
return rc;
}
{}
};
- logging_init("udevtrigger");
- udev_config_init();
dbg("version %s\n", VERSION);
- sysfs_init();
while (1) {
option = getopt_long(argc, argv, "vnFo:hce::s:S:a:A:", options, NULL);
if (sock >= 0)
close(sock);
- sysfs_cleanup();
- logging_close();
return 0;
}
const char *pos;
int rc;
+ logging_init("udevadm");
+ udev_config_init();
+ sysfs_init();
+
/* find command */
if (command != NULL)
for (i = 0; cmds[i].cmd != NULL; i++) {
fprintf(stderr, "unknown command, try help\n\n");
rc = 2;
out:
+ sysfs_cleanup();
+ logging_close();
return rc;
}