/third_party/eudev/src/udev/ |
D | udev-node.c | 162 const char *devnode; in link_find_prioritized() local 164 devnode = udev_device_get_devnode(dev_db); in link_find_prioritized() 165 if (devnode != NULL) { in link_find_prioritized() 170 strscpy(buf, bufsize, devnode); in link_find_prioritized() 255 const char *devnode = udev_device_get_devnode(dev); in node_permissions_apply() local 266 if (lstat(devnode, &stats) != 0) { in node_permissions_apply() 268 log_debug_errno(errno, "can not stat() node '%s' (%m)", devnode); in node_permissions_apply() 284 … log_debug("set permissions %s, %#o, uid=%u, gid=%u", devnode, mode, uid, gid); in node_permissions_apply() 285 err = chmod(devnode, mode); in node_permissions_apply() 287 … log_warning_errno(errno, "setting mode of %s to %#o failed: %m", devnode, mode); in node_permissions_apply() [all …]
|
D | udev-builtin-keyboard.c | 68 static void map_keycode(int fd, const char *devnode, int scancode, const char *keycode) in map_keycode() argument 98 …ng EVIOCSKEYCODE on device node '%s' (scan code 0x%x, key code %d): %m", devnode, map.scan, map.ke… in map_keycode() 121 static void override_abs(int fd, const char *devnode, in override_abs() argument 129 log_error_errno(errno, "Unable to EVIOCGABS device \"%s\"", devnode); in override_abs() 139 log_error("Unable to parse EV_ABS override '%s' for '%s'", value, devnode); in override_abs() 146 devnode); in override_abs() 149 log_error_errno(errno, "Unable to EVIOCSABS device \"%s\"", devnode); in override_abs() 178 static int open_device(const char *devnode) { in open_device() argument 181 fd = open(devnode, O_RDWR|O_CLOEXEC|O_NONBLOCK|O_NOCTTY); in open_device() 183 return log_error_errno(errno, "Error opening device \"%s\": %m", devnode); in open_device()
|
D | udev-builtin-input_id.c | 322 const char *sysname, *devnode; in builtin_input_id() local 354 devnode = udev_device_get_devnode(dev); in builtin_input_id() 356 if (devnode && sysname && startswith(sysname, "event")) in builtin_input_id() 357 extract_info(dev, devnode, test); in builtin_input_id()
|
/third_party/libusb/libusb/os/ |
D | netbsd_usb.c | 36 char devnode[16]; member 122 char devnode[16]; in netbsd_get_device_list() local 130 snprintf(devnode, sizeof(devnode), "/dev/ugen%d.00", i); in netbsd_get_device_list() 132 if ((fd = open(devnode, O_RDONLY)) < 0) { in netbsd_get_device_list() 134 usbi_err(ctx, "could not open %s", devnode); in netbsd_get_device_list() 154 strlcpy(dpriv->devnode, devnode, sizeof(devnode)); in netbsd_get_device_list() 198 dpriv->fd = open(dpriv->devnode, O_RDWR); in netbsd_open() 200 dpriv->fd = open(dpriv->devnode, O_RDONLY); in netbsd_open() 208 usbi_dbg("open %s: fd %d", dpriv->devnode, dpriv->fd); in netbsd_open() 253 fd = open(dpriv->devnode, O_RDONLY); in netbsd_get_config_descriptor() [all …]
|
D | openbsd_usb.c | 226 char devnode[16]; in obsd_open() local 234 snprintf(devnode, sizeof(devnode), DEVPATH "%s.00", in obsd_open() 236 fd = open(devnode, O_RDWR); in obsd_open() 241 usbi_dbg("open %s: fd %d", devnode, dpriv->fd); in obsd_open() 623 char devnode[16]; in _access_endpoint() local 637 snprintf(devnode, sizeof(devnode), DEVPATH "%s.%02d", in _access_endpoint() 641 if (((fd = open(devnode, O_RDWR)) < 0) && (errno == ENXIO)) in _access_endpoint() 642 if ((fd = open(devnode, mode)) < 0) in _access_endpoint()
|
/third_party/libinput/src/ |
D | path-seat.c | 131 const char *devnode, *sysname; in path_seat_get_for_device() local 133 devnode = udev_device_get_devnode(udev_device); in path_seat_get_for_device() 150 devnode); in path_seat_get_for_device() 162 devnode); in path_seat_get_for_device() 182 const char *devnode, *sysname; in path_device_enable() local 184 devnode = udev_device_get_devnode(udev_device); in path_device_enable() 199 devnode); in path_device_enable() 205 devnode); in path_device_enable() 333 const char *devnode) in udev_device_from_devnode() argument 339 if (stat(devnode, &st) < 0) in udev_device_from_devnode() [all …]
|
D | udev-seat.c | 82 const char *devnode, *sysname; in device_added() local 96 devnode = udev_device_get_devnode(udev_device); in device_added() 129 devnode); in device_added() 135 devnode); in device_added()
|
/third_party/libinput/udev/ |
D | libinput-fuzz-to-zero.c | 38 const char *devnode; in reset_absfuzz_to_zero() local 48 devnode = udev_device_get_devnode(device); in reset_absfuzz_to_zero() 49 if (!devnode) in reset_absfuzz_to_zero() 52 fd = open(devnode, O_RDWR); in reset_absfuzz_to_zero()
|
D | libinput-fuzz-extract.c | 45 const char *devnode; in handle_absfuzz() local 55 devnode = udev_device_get_devnode(device); in handle_absfuzz() 56 if (!devnode) in handle_absfuzz() 59 fd = open(devnode, O_RDONLY); in handle_absfuzz()
|
/third_party/libevdev/libevdev/ |
D | libevdev-uinput.c | 204 uinput_dev->devnode = strdup(buf); in fetch_syspath_and_devnode() 219 char *devnode = NULL; in fetch_device_node() local 230 if (!devnode && asprintf(&devnode, "/dev/input/%s", namelist[i]->d_name) == -1) in fetch_device_node() 231 devnode = NULL; in fetch_device_node() 237 return devnode; in fetch_device_node() 258 uinput_dev->devnode = fetch_device_node(buf); in fetch_syspath_and_devnode() 313 uinput_dev->devnode = fetch_device_node(buf); in fetch_syspath_and_devnode() 321 return uinput_dev->devnode ? 0 : -1; in fetch_syspath_and_devnode() 465 free(uinput_dev->devnode); in libevdev_uinput_destroy() 479 return uinput_dev->devnode; in libevdev_uinput_get_devnode()
|
D | libevdev-uinput-int.h | 28 char *devnode; /**< device node */ member
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/gbm/ |
D | gstgl_gbm_utils.c | 480 const gchar *devnode = g_udev_device_get_device_file (gudevice); in gst_gl_gbm_find_and_open_drm_node() local 482 if ((devnode == NULL) || !g_str_has_prefix (devnode, "/dev/dri/card")) in gst_gl_gbm_find_and_open_drm_node() 485 GST_DEBUG ("Found DRM device with device node \"%s\"", devnode); in gst_gl_gbm_find_and_open_drm_node() 487 drm_fd = open (devnode, O_RDWR | O_CLOEXEC); in gst_gl_gbm_find_and_open_drm_node() 489 GST_WARNING ("Cannot open device node \"%s\": %s (%d)", devnode, in gst_gl_gbm_find_and_open_drm_node() 494 GST_DEBUG ("Device node \"%s\" is a valid DRM device node", devnode); in gst_gl_gbm_find_and_open_drm_node()
|
/third_party/libinput/tools/ |
D | libinput-replay | 101 def print_events(devnode, indent, evs): argument 102 devnode = os.path.basename(devnode) 105 devnode, ' ' * (indent * 8), e.sec, e.usec, e.type.name, e.code.name, e.value)) 141 print_events(uinput.devnode, device['__index'], evs) 176 print('{}: {}'.format(uinput.devnode, uinput.name))
|
D | shared.c | 480 char *devnode = find_device("ID_INPUT_TOUCHPAD"); in find_touchpad_device() local 482 if (devnode) { in find_touchpad_device() 483 snprintf(path, path_len, "%s", devnode); in find_touchpad_device() 484 free(devnode); in find_touchpad_device() 487 return devnode != NULL; in find_touchpad_device() 491 is_touchpad_device(const char *devnode) in is_touchpad_device() argument 498 if (stat(devnode, &st) < 0) in is_touchpad_device()
|
D | libinput-list-devices.c | 277 const char *devnode; in print_device_notify() local 288 devnode = udev_device_get_devnode(udev_device); in print_device_notify() 295 devnode, in print_device_notify()
|
D | libinput-record.c | 82 char *devnode; /* device node of the source device */ member 1736 if (!strstartswith(dev->devnode, prefix) || in print_hid_report_descriptor() 1737 strlen(dev->devnode) > strlen(prefix) + 2) in print_hid_report_descriptor() 1740 node = &dev->devnode[strlen(prefix)]; in print_hid_report_descriptor() 1774 if (stat(dev->devnode, &st) < 0) in print_udev_properties() 1843 if (stat(dev->devnode, &st) < 0) in print_device_quirks() 1937 iprintf(ctx, "- node: %s\n", dev->devnode); in print_device_description() 2299 d->devnode = path; in init_device() 2304 fd = open(d->devnode, O_RDONLY|O_NONBLOCK); in init_device() 2308 d->devnode); in init_device() [all …]
|
D | libinput-debug-tablet.c | 247 const char *devnode; in handle_device_added() local 261 devnode = udev_device_get_devnode(udev_device); in handle_device_added() 262 if (devnode) { in handle_device_added() 263 int fd = open(devnode, O_RDONLY|O_NONBLOCK); in handle_device_added()
|
/third_party/libinput/test/ |
D | test-totem.c | 140 const char *devnode; in START_TEST() local 153 devnode = libevdev_uinput_get_devnode(dev->uinput); in START_TEST() 155 libinput_path_add_device(li, devnode); in START_TEST() 206 const char *devnode; in START_TEST() local 209 devnode = libevdev_uinput_get_devnode(dev->uinput); in START_TEST() 211 libinput_path_add_device(li, devnode); in START_TEST() 408 const char *devnode; in START_TEST() local 414 devnode = libevdev_uinput_get_devnode(dev->uinput); in START_TEST() 416 libinput_path_add_device(li, devnode); in START_TEST()
|
/third_party/eudev/rules/ |
D | 60-cdrom_id.rules | 16 ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end" 20 IMPORT{program}="cdrom_id --lock-media $devnode"
|
D | 60-persistent-storage.rules | 38 …SERIAL}!="?*", SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", IMPORT{program}="ata_id --export $devnode" 41 …=="scsi", ATTRS{type}=="5", ATTRS{scsi_level}=="[6-9]*", IMPORT{program}="ata_id --export $devnode" 44 …_SERIAL}!="?*", ATTR{removable}=="0", SUBSYSTEMS=="usb", IMPORT{program}="ata_id --export $devnode" 50 …NV{ID_SERIAL}!="?*", IMPORT{program}="scsi_id --export --whitelisted -d $devnode", ENV{ID_BUS}="sc… 51 …NV{ID_SERIAL}!="?*", IMPORT{program}="scsi_id --export --whitelisted -d $devnode", ENV{ID_BUS}="cc…
|
D | 75-probe_mtd.rules | 5 KERNEL=="mtd*ro", IMPORT{program}="mtd_probe $devnode"
|
D | 64-btrfs.rules | 8 IMPORT{builtin}="btrfs ready $devnode"
|
D | 64-btrfs.rules.in | 8 IMPORT{builtin}="btrfs ready $devnode"
|
/third_party/eudev/src/libudev/ |
D | libudev-device.c | 41 static int udev_device_set_devnode(struct udev_device *udev_device, const char *devnode); 66 char *devnode; member 1217 free(udev_device->devnode); in udev_device_unref() 1310 if (udev_device->devnode != NULL) in udev_device_get_devnode() 1311 return udev_device->devnode; in udev_device_get_devnode() 1314 return udev_device->devnode; in udev_device_get_devnode() 1682 static int udev_device_set_devnode(struct udev_device *udev_device, const char *devnode) in udev_device_set_devnode() argument 1684 free(udev_device->devnode); in udev_device_set_devnode() 1685 if (devnode[0] != '/') { in udev_device_set_devnode() 1686 if (asprintf(&udev_device->devnode, "/dev/%s", devnode) < 0) in udev_device_set_devnode() [all …]
|
/third_party/gstreamer/gstplugins_good/sys/oss4/ |
D | oss4-property-probe.c | 136 if (strcmp (ai.devnode, device_handle) == 0) { in gst_oss4_property_probe_find_device_name() 211 ai.devnode, ai.name); in gst_oss4_property_probe_get_audio_devices() 213 devices = g_list_prepend (devices, g_strdup (ai.devnode)); in gst_oss4_property_probe_get_audio_devices()
|