Searched refs:devnode (Results 1 - 8 of 8) sorted by relevance
/systemd/src/udev/ |
H A D | udev-node.c | 162 const char *devnode; local 164 devnode = udev_device_get_devnode(dev_db); 165 if (devnode != NULL) { 170 strscpy(buf, bufsize, devnode); 255 const char *devnode = udev_device_get_devnode(dev); local 266 if (lstat(devnode, &stats) != 0) { 267 err = log_debug_errno(errno, "can not stat() node '%s' (%m)", devnode); 283 log_debug("set permissions %s, %#o, uid=%u, gid=%u", devnode, mode, uid, gid); 284 err = chmod(devnode, mode); 286 log_warning_errno(errno, "setting mode of %s to %#o failed: %m", devnode, mod [all...] |
H A D | udev-builtin-keyboard.c | 72 static void map_keycode(int fd, const char *devnode, int scancode, const char *keycode) argument 102 log_error_errno(errno, "Error calling EVIOCSKEYCODE on device node '%s' (scan code 0x%x, key code %d): %m", devnode, map.scan, map.key); 125 static void override_abs(int fd, const char *devnode, argument 133 log_error_errno(errno, "Unable to EVIOCGABS device \"%s\"", devnode); 143 log_error("Unable to parse EV_ABS override '%s' for '%s'", value, devnode); 150 devnode); 153 log_error_errno(errno, "Unable to EVIOCSABS device \"%s\"", devnode); 185 static int open_device(const char *devnode) { argument 188 fd = open(devnode, O_RDWR|O_CLOEXEC|O_NONBLOCK|O_NOCTTY); 190 return log_error_errno(errno, "Error opening device \"%s\": %m", devnode); [all...] |
H A D | udev-builtin-input_id.c | 291 const char *sysname, *devnode; local 322 devnode = udev_device_get_devnode(dev); 324 if (devnode && sysname && startswith(sysname, "event")) 325 extract_info(dev, devnode, test);
|
H A D | udev-event.c | 102 { .name = "devnode", .fmt = 'N', .type = SUBST_DEVNODE }, 328 const char *devnode; local 333 devnode = udev_device_get_devnode(dev_parent); 334 if (devnode != NULL) 335 l = strpcpy(&s, l, devnode + strlen("/dev/"));
|
/systemd/src/core/ |
H A D | swap.h | 59 char *devnode; member in struct:Swap
|
H A D | swap.c | 73 static int swap_set_devnode(Swap *s, const char *devnode) { argument 86 if (s->devnode) { 87 first = hashmap_get(swaps, s->devnode); 91 hashmap_replace(swaps, first->devnode, first); 93 hashmap_remove(swaps, s->devnode); 95 s->devnode = mfree(s->devnode); 98 if (devnode) { 99 s->devnode = strdup(devnode); [all...] |
/systemd/src/libudev/ |
H A D | libudev-device.c | 675 const char *devnode; local 680 r = sd_device_get_devname(udev_device->device, &devnode); 686 return devnode;
|
/systemd/src/journal/ |
H A D | journalctl.c | 179 const char *subsys, *sysname, *devnode; local 201 devnode = udev_device_get_devnode(d); 202 if (devnode) { 205 r = stat(devnode, &st); 207 return log_error_errno(r, "Failed to stat() device node \"%s\": %m", devnode);
|
Completed in 2681 milliseconds