/systemd/test/ |
H A D | udev-test.pl | 3 # udev test 5 # Provides automated testing of the udev binary. 10 # This program prepares the environment, creates the config and calls udev. 12 # udev parses the rules, looks at the provided sysfs and 23 my $udev_bin = "./test-udev"; 30 my $udev_rules_dir = "$udev_run/udev/rules.d"; 31 my $udev_rules = "$udev_rules_dir/udev-test.rules"; 1320 sub udev { subroutine 1420 udev("add", $rules->{devpath}, \$rules->{rules}); 1461 udev("remov [all...] |
/systemd/src/udev/ |
H A D | udevadm-util.c | 21 struct udev_device *find_device(struct udev *udev, argument 25 assert(udev); 45 return udev_device_new_from_devnum(udev, type, statbuf.st_rdev); 47 return udev_device_new_from_syspath(udev, id);
|
H A D | udev-builtin-net_setup_link.c | 23 #include "udev.h" 67 static int builtin_net_setup_link_init(struct udev *udev) { argument 85 static void builtin_net_setup_link_exit(struct udev *udev) { argument 91 static bool builtin_net_setup_link_validate(struct udev *udev) { argument
|
H A D | udev-watch.c | 28 #include "udev.h" 36 int udev_watch_init(struct udev *udev) { argument 46 void udev_watch_restore(struct udev *udev) { argument 50 if (rename("/run/udev/watch", "/run/udev/watch.old") == 0) { 54 dir = opendir("/run/udev/watch.old"); 56 log_error_errno(errno, "unable to open old watches dir /run/udev/watch.old; old watches will not be restored: %m"); 73 dev = udev_device_new_from_device_id(udev, devic 91 udev_watch_begin(struct udev *udev, struct udev_device *dev) argument 117 udev_watch_end(struct udev *udev, struct udev_device *dev) argument 137 udev_watch_lookup(struct udev *udev, int wd) argument [all...] |
H A D | udevadm-control.c | 23 #include "udev-util.h" 24 #include "udev.h" 28 "Control the udev daemon.\n\n" 32 " -l --log-priority=LEVEL Set the udev log level for the daemon\n" 42 static int adm_control(struct udev *udev, int argc, char *argv[]) { argument 67 uctrl = udev_ctrl_new(udev); 162 .help = "Control the udev daemon",
|
H A D | udevadm-settle.c | 30 #include "udev.h" 35 "Wait for pending udev events.\n\n" 43 static int adm_settle(struct udev *udev, int argc, char *argv[]) { argument 104 /* guarantee that the udev daemon isn't pre-processing */ 108 uctrl = udev_ctrl_new(udev); 119 queue = udev_queue_new(udev); 121 log_error("unable to get udev queue"); 161 .help = "Wait for pending udev events",
|
H A D | udevadm-test-builtin.c | 25 #include "udev.h" 27 static void help(struct udev *udev) { argument 35 udev_builtin_list(udev); 38 static int adm_builtin(struct udev *udev, int argc, char *argv[]) { argument 53 help(udev); 60 help(udev); 72 udev_builtin_init(udev); 77 help(udev); [all...] |
H A D | udevadm.c | 25 #include "udev.h" 27 static int adm_version(struct udev *udev, int argc, char *argv[]) { argument 37 static int adm_help(struct udev *udev, int argc, char *argv[]); 57 static int adm_help(struct udev *udev, int argc, char *argv[]) { argument 71 static int run_command(struct udev *udev, const struct udevadm_cmd *cmd, int argc, char *argv[]) { argument 75 return cmd->cmd(udev, arg 79 struct udev *udev; local [all...] |
H A D | udev-builtin-kmod.c | 28 #include "udev.h" 32 static int load_module(struct udev *udev, const char *alias) { argument 67 struct udev *udev = udev_device_get_udev(dev); local 80 load_module(udev, argv[i]); 86 /* called at udev startup and reload */ 87 static int builtin_kmod_init(struct udev *udev) { argument 96 kmod_set_log_fn(ctx, udev_kmod_log, udev); 102 builtin_kmod_exit(struct udev *udev) argument 108 builtin_kmod_validate(struct udev *udev) argument [all...] |
H A D | udev-builtin.c | 25 #include "udev.h" 49 void udev_builtin_init(struct udev *udev) { argument 57 builtins[i]->init(udev); 62 void udev_builtin_exit(struct udev *udev) { argument 70 builtins[i]->exit(udev); 75 bool udev_builtin_validate(struct udev *udev) { argument 79 if (builtins[i] && builtins[i]->validate && builtins[i]->validate(udev)) 84 udev_builtin_list(struct udev *udev) argument [all...] |
H A D | udevadm-test.c | 29 #include "udev-util.h" 30 #include "udev.h" 43 static int adm_test(struct udev *udev, int argc, char *argv[]) { argument 105 udev_builtin_init(udev); 107 rules = udev_rules_new(udev, resolve_names); 121 dev = udev_device_new_from_synthetic_event(udev, filename, action); 151 udev_builtin_exit(udev);
|
/systemd/src/login/ |
H A D | logind-acl.h | 34 int devnode_acl_all(struct udev *udev, 48 static inline int devnode_acl_all(struct udev *udev, argument
|
H A D | sysfs-show.c | 31 #include "udev-util.h" 35 struct udev *udev, 42 assert(udev); 58 d = udev_device_new_from_syspath(udev, sysfs); 93 lookahead_d = udev_device_new_from_syspath(udev, lookahead_sysfs); 137 show_sysfs_one(udev, seat, item, sysfs, p, n_columns - 2); 146 _cleanup_udev_unref_ struct udev *udev = NULL; local 159 udev 34 show_sysfs_one( struct udev *udev, const char *seat, struct udev_list_entry **item, const char *sub, const char *prefix, unsigned n_columns) argument [all...] |
H A D | logind-acl.c | 32 #include "udev-util.h" 177 int devnode_acl_all(struct udev *udev, argument 192 assert(udev); 198 e = udev_enumerate_new(udev); 227 d = udev_device_new_from_syspath(udev, udev_list_entry_get_name(item)); 247 log_debug("Found udev node %s for seat %s", n, seat); 253 /* udev exports "dead" device nodes to allow module on-demand loading, 255 dir = opendir("/run/udev/static_node-tags/uaccess");
|
/systemd/src/libudev/ |
H A D | libudev-hwdb.c | 39 struct udev *udev; member in struct:udev_hwdb 49 * @udev: udev library context 55 _public_ struct udev_hwdb *udev_hwdb_new(struct udev *udev) { argument 60 assert_return(udev, NULL); 74 udev_list_init(udev, &hwdb->properties_list, true);
|
H A D | libudev-device-internal.h | 34 struct udev *udev; member in struct:udev_device 58 struct udev_device *udev_device_new(struct udev *udev);
|
H A D | libudev-private.h | 38 int udev_get_rules_path(struct udev *udev, char **path[], usec_t *ts_usec[]); 41 struct udev_device *udev_device_new_from_nulstr(struct udev *udev, char *nulstr, ssize_t buflen); 42 struct udev_device *udev_device_new_from_synthetic_event(struct udev *udev, const char *syspath, const char *action); 83 struct udev_monitor *udev_monitor_new_from_netlink_fd(struct udev *udev, const char *name, int fd); 90 struct udev *udev; member in struct:udev_list [all...] |
H A D | libudev-queue.c | 36 * This exports the current state of the udev processing queue. 42 * Opaque object representing the current event queue in the udev daemon. 45 struct udev *udev; member in struct:udev_queue 52 * @udev: udev library context 55 * release the resources of the udev queue context. 57 * Returns: the udev queue context, or #NULL on error. 59 _public_ struct udev_queue *udev_queue_new(struct udev *udev) argument [all...] |
H A D | libudev.c | 39 * The context contains the default values read from the udev config file, 44 * udev: 48 struct udev { struct 50 void (*log_fn)(struct udev *udev, 58 * @udev: udev library context 65 _public_ void *udev_get_userdata(struct udev *udev) { argument 66 if (udev 78 udev_set_userdata(struct udev *udev, void *userdata) argument 96 struct udev *udev; local 191 udev_ref(struct udev *udev) argument 207 udev_unref(struct udev *udev) argument 225 udev_set_log_fn(struct udev *udev, void (*log_fn)(struct udev *udev, int priority, const char *file, int line, const char *fn, const char *format, va_list args)) argument 239 udev_get_log_priority(struct udev *udev) argument 251 udev_set_log_priority(struct udev *udev, int priority) argument [all...] |
H A D | libudev-enumerate.c | 53 struct udev *udev; member in struct:udev_enumerate 63 * @udev: udev library context 69 _public_ struct udev_enumerate *udev_enumerate_new(struct udev *udev) { argument 74 assert_return_errno(udev, NULL, EINVAL); 95 udev_enumerate->udev = udev; 97 udev_list_init(udev, [all...] |
H A D | libudev-util.c | 43 int util_resolve_subsys_kernel(struct udev *udev, const char *string, argument 78 dev = udev_device_new_from_subsystem_sysname(udev, subsys, sysname);
|
/systemd/src/libsystemd-network/ |
H A D | dhcp-identifier.c | 28 #include "udev-util.h" 67 /* not in a container, udev will be around */ 68 _cleanup_udev_unref_ struct udev *udev; local 71 udev = udev_new(); 72 if (!udev) 76 device = udev_device_new_from_device_id(udev, ifindex_str);
|
/systemd/src/network/ |
H A D | networkd.h | 30 #include "udev.h" 45 struct udev *udev; member in struct:Manager
|
H A D | test-network.c | 189 struct udev *udev; local 203 udev = udev_new(); 204 assert_se(udev); 206 loopback = udev_device_new_from_syspath(udev, "/sys/class/net/lo"); 215 udev_unref(udev);
|
/systemd/src/test/ |
H A D | test-udev.c | 34 #include "udev-util.h" 35 #include "udev.h" 46 { "test/run", "/etc/udev/rules.d", "failed to mount empty /etc/udev/rules.d" }, 78 _cleanup_udev_unref_ struct udev *udev = NULL; local 91 udev = udev_new(); 92 if (udev == NULL) 110 rules = udev_rules_new(udev, 1); 113 dev = udev_device_new_from_synthetic_event(udev, syspat [all...] |