Searched refs:devnode (Results 1 - 8 of 8) sorted by relevance

/systemd/src/udev/
H A Dudev-node.c162 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 Dudev-builtin-keyboard.c72 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 Dudev-builtin-input_id.c291 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 Dudev-event.c102 { .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 Dswap.h59 char *devnode; member in struct:Swap
H A Dswap.c73 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 Dlibudev-device.c675 const char *devnode; local
680 r = sd_device_get_devname(udev_device->device, &devnode);
686 return devnode;
/systemd/src/journal/
H A Djournalctl.c179 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