/third_party/eudev/src/libudev/ |
H A D | libudev-enumerate.c | 44 struct syspath { struct 45 char *syspath; member 66 struct syspath *devices; 147 free(udev_enumerate->devices[i].syspath); in udev_enumerate_unref() 168 static int syspath_add(struct udev_enumerate *udev_enumerate, const char *syspath) in syspath_add() argument 171 struct syspath *entry; in syspath_add() 175 struct syspath *buf; in syspath_add() 181 buf = realloc(udev_enumerate->devices, (udev_enumerate->devices_max + add) * sizeof(struct syspath)); in syspath_add() 188 path = strdup(syspath); in syspath_add() 192 entry->syspath in syspath_add() 218 devices_delay_end(struct udev *udev, const char *syspath) devices_delay_end() argument 237 devices_delay_later(struct udev *udev, const char *syspath) devices_delay_later() argument 675 char syspath[UTIL_PATH_SIZE]; scan_dir_and_add_devices() local 774 udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate, const char *syspath) udev_enumerate_add_syspath() argument [all...] |
H A D | libudev-util.c | 114 ssize_t util_get_sys_core_link_value(struct udev *udev, const char *slink, const char *syspath, char *value, size_t size) in util_get_sys_core_link_value() argument 121 strscpyl(path, sizeof(path), syspath, "/", slink, NULL); in util_get_sys_core_link_value() 133 int util_resolve_sys_link(struct udev *udev, char *syspath, size_t size) in util_resolve_sys_link() argument 142 len = readlink(syspath, link_target, sizeof(link_target)); in util_resolve_sys_link() 150 base = strrchr(syspath, '/'); in util_resolve_sys_link() 156 strscpyl(base, size - (base - syspath), "/", &link_target[back * 3], NULL); in util_resolve_sys_link()
|
H A D | libudev-device.c | 49 * by their syspath, every device has exactly one path in the kernel sys 62 char *syspath; member 217 if (util_get_sys_core_link_value(udev_device->udev, "driver", udev_device->syspath, driver, sizeof(driver)) > 0) in udev_device_get_driver() 293 if (util_get_sys_core_link_value(udev_device->udev, "subsystem", udev_device->syspath, subsystem, sizeof(subsystem)) > 0) { in udev_device_get_subsystem() 412 static int udev_device_set_syspath(struct udev_device *udev_device, const char *syspath) in udev_device_set_syspath() argument 417 free(udev_device->syspath); in udev_device_set_syspath() 418 udev_device->syspath = strdup(syspath); in udev_device_set_syspath() 419 if (udev_device->syspath == NULL) in udev_device_set_syspath() 421 udev_device->devpath = udev_device->syspath in udev_device_set_syspath() 759 udev_device_new_from_syspath(struct udev *udev, const char *syspath) udev_device_new_from_syspath() argument 2060 udev_device_new_from_synthetic_event(struct udev *udev, const char *syspath, const char *action) udev_device_new_from_synthetic_event() argument [all...] |
H A D | libudev-private.h | 40 struct udev_device *udev_device_new_from_synthetic_event(struct udev *udev, const char *syspath, const char *action); 140 ssize_t util_get_sys_core_link_value(struct udev *udev, const char *slink, const char *syspath, char *value, size_t size); 141 int util_resolve_sys_link(struct udev *udev, char *syspath, size_t size);
|
H A D | libudev.h | 81 struct udev_device *udev_device_new_from_syspath(struct udev *udev, const char *syspath); 157 int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate, const char *syspath);
|
/third_party/eudev/src/udev/ |
H A D | udevadm-test-builtin.c | 53 char *syspath = NULL; in adm_builtin() local 74 syspath = argv[optind++]; in adm_builtin() 75 if (syspath == NULL) { in adm_builtin() 76 fprintf(stderr, "syspath missing\n"); in adm_builtin() 92 if (!startswith(syspath, "/sys")) in adm_builtin() 93 strscpyl(filename, sizeof(filename), "/sys", syspath, NULL); in adm_builtin() 95 strscpy(filename, sizeof(filename), syspath); in adm_builtin()
|
H A D | udevadm-test.c | 36 printf("%s test OPTIONS <syspath>\n\n" in help() 49 const char *syspath = NULL; in adm_test() local 93 syspath = argv[optind]; in adm_test() 94 if (syspath == NULL) { in adm_test() 95 fprintf(stderr, "syspath parameter missing\n"); in adm_test() 117 if (!startswith(syspath, "/sys")) in adm_test() 118 strscpyl(filename, sizeof(filename), "/sys", syspath, NULL); in adm_test() 120 strscpy(filename, sizeof(filename), syspath); in adm_test()
|
/third_party/eudev/test/ |
H A D | test-libudev.c | 50 printf("syspath: '%s'\n", str); in print_device() 111 static int test_device(struct udev *udev, const char *syspath) { in test_device() argument 114 printf("looking at device: %s\n", syspath); in test_device() 115 device = udev_device_new_from_syspath(udev, syspath); in test_device() 125 static int test_device_parents(struct udev *udev, const char *syspath) { in test_device_parents() argument 129 printf("looking at device: %s\n", syspath); in test_device_parents() 130 device = udev_device_new_from_syspath(udev, syspath); in test_device_parents() 409 { "syspath", required_argument, NULL, 'p' }, in main() 416 const char *syspath = "/devices/virtual/mem/null"; in main() local 432 syspath in main() [all...] |
H A D | test-udev.c | 94 char syspath[UTIL_PATH_SIZE]; in main() local 127 strscpyl(syspath, sizeof(syspath), "/sys", devpath, NULL); in main() 128 dev = udev_device_new_from_synthetic_event(udev, syspath, action); in main()
|
/third_party/libevdev/test/ |
H A D | test-uinput.c | 183 /* get syspath twice returns same pointer */ in START_TEST() 205 const char *syspath; in START_TEST() local 223 syspath = libevdev_uinput_get_syspath(uidev); in START_TEST() 225 ck_assert(syspath == NULL); in START_TEST() 241 const char *syspath, *syspath2; 269 /* create a second one to test the syspath time filtering code */ 273 syspath = libevdev_uinput_get_syspath(uidev); 274 ck_assert(syspath != NULL); 276 /* get syspath twice returns same pointer */ 278 ck_assert(syspath [all...] |
H A D | test-common-uinput.h | 31 char *uinput_devnode_from_syspath(const char *syspath);
|
/third_party/libinput/src/ |
H A D | udev-seat.c | 56 const char *syspath; in filter_duplicates() local 63 syspath = udev_device_get_syspath(ud); in filter_duplicates() 64 if (syspath && new_syspath && streq(syspath, new_syspath)) in filter_duplicates() 153 const char *syspath; in device_removed() local 155 syspath = udev_device_get_syspath(udev_device); in device_removed() 159 if (streq(syspath, in device_removed()
|
H A D | evdev-tablet-pad-leds.c | 202 const char *syspath) in pad_group_new() 215 led = pad_led_new(libinput, syspath, group_index, nleds); in pad_group_new() 286 char syspath[PATH_MAX]; in pad_init_led_groups() local 292 /* syspath is /sys/class/leds/input1234/input12345::wacom-" and in pad_init_led_groups() 294 if (!pad_led_get_sysfs_base_path(device, syspath, sizeof(syspath))) in pad_init_led_groups() 306 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups() 313 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups() 320 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups() 328 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups() 199 pad_group_new(struct pad_dispatch *pad, unsigned int group_index, int nleds, const char *syspath) pad_group_new() argument [all...] |
H A D | quirks.c | 373 const char *syspath = "/sys/devices/virtual/dmi/id"; in init_dmi_linux() local 379 udev_device = udev_device_new_from_syspath(udev, syspath); in init_dmi_linux() 473 const char *syspath = "/sys/firmware/devicetree/base/compatible"; in init_dt() local 479 fp = fopen(syspath, "r"); in init_dt()
|
/third_party/libinput/udev/ |
H A D | libinput-fuzz-to-zero.c | 85 const char *syspath; in main() local 90 syspath = argv[1]; in main() 96 device = udev_device_new_from_syspath(udev, syspath); in main()
|
H A D | libinput-fuzz-extract.c | 117 const char *syspath; in main() local 122 syspath = argv[1]; in main() 128 device = udev_device_new_from_syspath(udev, syspath); in main()
|
H A D | libinput-device-group.c | 157 const char *syspath, in main() local 167 syspath = argv[1]; in main() 173 device = udev_device_new_from_syspath(udev, syspath); in main()
|
/third_party/libevdev/libevdev/ |
H A D | libevdev-uinput.c | 169 * Set libevdev_uinput->syspath to NULL unconditionally. 186 uinput_dev->syspath = NULL; in fetch_syspath_and_devnode() 240 uinput_dev->syspath = strdup(buf); in fetch_syspath_and_devnode() 280 if (uinput_dev->syspath) { in fetch_syspath_and_devnode() 282 log_info(NULL, "multiple identical devices found. syspath is unreliable\n"); in fetch_syspath_and_devnode() 291 log_error(NULL, "Invalid syspath, syspath is unreliable\n"); in fetch_syspath_and_devnode() 295 uinput_dev->syspath = strdup(buf); in fetch_syspath_and_devnode() 419 log_error(NULL, "unable to fetch syspath or device node.\n"); in libevdev_uinput_create_from_device() 447 free(uinput_dev->syspath); in libevdev_uinput_destroy() [all...] |
H A D | libevdev-uinput-int.h | 10 char *syspath; /**< /sys path */ member
|
/third_party/musl/tools/api_cmp_tool/ |
H A D | compare.py | 177 syspath = ccsyspath.system_include_paths('clang') 178 incargs = [b'-I' + inc for inc in syspath] 185 syspath = ccsyspath.system_include_paths('clang++') 186 incargs = [b'-I' + inc for inc in syspath]
|
/third_party/libinput/tools/ |
H A D | libinput-measure-fuzz.py | 311 syspath = device.path.replace("/dev/input/", "/sys/class/input/") 313 print("Running udevadm trigger {}".format(syspath)) 314 subprocess.run(["udevadm", "trigger", syspath], check=True)
|
H A D | libinput-record.c | 1668 char syspath[PATH_MAX]; in print_hid_report_descriptor() local 1681 len = snprintf(syspath, in print_hid_report_descriptor() 1682 sizeof(syspath), in print_hid_report_descriptor() 1688 fd = open(syspath, O_RDONLY); in print_hid_report_descriptor() 2515 char syspath[PATH_MAX]; in init_hidraw() local 2519 snprintf(syspath, in init_hidraw() 2520 sizeof(syspath), in init_hidraw() 2523 dir = opendir(syspath); in init_hidraw()
|
/third_party/python/Python/ |
H A D | traceback.c | 309 PyObject *syspath; in _Py_FindSourceFile() local 334 syspath = _PySys_GetAttr(tstate, &_Py_ID(path)); in _Py_FindSourceFile() 335 if (syspath == NULL || !PyList_Check(syspath)) in _Py_FindSourceFile() 337 npath = PyList_Size(syspath); in _Py_FindSourceFile() 341 v = PyList_GetItem(syspath, i); in _Py_FindSourceFile()
|
/third_party/eudev/export_include/ |
H A D | libudev.h | 81 struct udev_device *udev_device_new_from_syspath(struct udev *udev, const char *syspath); 157 int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate, const char *syspath);
|
/third_party/python/Lib/test/ |
H A D | test_pkg.py | 51 self.syspath = list(sys.path) 55 sys.path[:] = self.syspath
|