Home
last modified time | relevance | path

Searched refs:syspath (Results 1 – 25 of 38) sorted by relevance

12

/third_party/eudev/src/libudev/
Dlibudev-enumerate.c44 struct syspath { struct
45 char *syspath; member
66 struct syspath *devices; argument
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 …f = 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 = path; in syspath_add()
[all …]
Dlibudev-util.c114 ssize_t util_get_sys_core_link_value(struct udev *udev, const char *slink, const char *syspath, cha… 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()
Dlibudev-device.c62 char *syspath; member
217 …if (util_get_sys_core_link_value(udev_device->udev, "driver", udev_device->syspath, driver, sizeof… in udev_device_get_driver()
293 …til_get_sys_core_link_value(udev_device->udev, "subsystem", udev_device->syspath, subsystem, sizeo… 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 + strlen("/sys"); in udev_device_set_syspath()
424 pos = strrchr(udev_device->syspath, '/'); in udev_device_set_syspath()
672 strscpyl(filename, sizeof(filename), udev_device->syspath, "/uevent", NULL); in udev_device_read_uevent_file()
[all …]
Dlibudev-private.h40 struct udev_device *udev_device_new_from_synthetic_event(struct udev *udev, const char *syspath, co…
140 ssize_t util_get_sys_core_link_value(struct udev *udev, const char *slink, const char *syspath, cha…
141 int util_resolve_sys_link(struct udev *udev, char *syspath, size_t size);
Dlibudev.h81 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/
Dudevadm-test-builtin.c53 char *syspath = NULL; in adm_builtin() local
74 syspath = argv[optind++]; in adm_builtin()
75 if (syspath == NULL) { 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()
Dudevadm-test.c49 const char *syspath = NULL; in adm_test() local
93 syspath = argv[optind]; in adm_test()
94 if (syspath == NULL) { 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/
Dtest-libudev.c111 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()
416 const char *syspath = "/devices/virtual/mem/null"; in main() local
432 syspath = optarg; in main()
461 if (!startswith(syspath, "/sys")) { in main()
462 snprintf(path, sizeof(path), "/sys/%s", syspath); in main()
[all …]
Dtest-udev.c94 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/libinput/src/
Dudev-seat.c57 const char *syspath; in filter_duplicates() local
64 syspath = udev_device_get_syspath(ud); in filter_duplicates()
65 if (syspath && new_syspath && streq(syspath, new_syspath)) in filter_duplicates()
152 const char *syspath; in device_removed() local
154 syspath = udev_device_get_syspath(udev_device); in device_removed()
158 if (streq(syspath, in device_removed()
Devdev-tablet-pad-leds.c197 const char *syspath) in pad_group_new() argument
210 led = pad_led_new(libinput, syspath, group_index, nleds); in pad_group_new()
282 char syspath[PATH_MAX]; in pad_init_led_groups() local
290 if (!pad_led_get_sysfs_base_path(device, syspath, sizeof(syspath))) in pad_init_led_groups()
302 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups()
309 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups()
316 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups()
324 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups()
/third_party/libinput/udev/
Dlibinput-fuzz-to-zero.c86 const char *syspath; in main() local
91 syspath = argv[1]; in main()
97 device = udev_device_new_from_syspath(udev, syspath); in main()
Dlibinput-fuzz-extract.c119 const char *syspath; in main() local
124 syspath = argv[1]; in main()
130 device = udev_device_new_from_syspath(udev, syspath); in main()
Dlibinput-device-group.c157 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/eudev/
DREADME_zh.md34 void test_device(struct udev *udev, const char *syspath)
37 printf("looking at device: %s\n", syspath);
38 device = udev_device_new_from_syspath(udev, syspath);
/third_party/weston/libweston/backend-drm/
Dlibbacklight.c156 const char *syspath = NULL; in backlight_init() local
170 syspath = udev_device_get_syspath(drm_device); in backlight_init()
171 if (!syspath) in backlight_init()
174 if (asprintf(&path, "%s/%s", syspath, "device") < 0) in backlight_init()
/third_party/weston/libweston/
Dtouch-calibration.c448 const char *syspath) in weston_compositor_find_touch_device_by_syspath() argument
454 if (!syspath) in weston_compositor_find_touch_device_by_syspath()
463 if (strcmp(device->syspath, syspath) == 0) in weston_compositor_find_touch_device_by_syspath()
476 const char *syspath, in touch_calibration_create_calibrator() argument
532 syspath); in touch_calibration_create_calibrator()
543 syspath ?: ""); in touch_calibration_create_calibrator()
672 device->syspath, name); in bind_touch_calibration()
/third_party/libevdev/libevdev/
Dlibevdev-uinput.c203 uinput_dev->syspath = NULL; in fetch_syspath_and_devnode()
257 uinput_dev->syspath = strdup(buf); in fetch_syspath_and_devnode()
297 if (uinput_dev->syspath) { in fetch_syspath_and_devnode()
312 uinput_dev->syspath = strdup(buf); in fetch_syspath_and_devnode()
464 free(uinput_dev->syspath); in libevdev_uinput_destroy()
473 return uinput_dev->syspath; in libevdev_uinput_get_syspath()
Dlibevdev-uinput-int.h27 char *syspath; /**< /sys path */ member
/third_party/musl/tools/api_cmp_tool/
Dcompare.py177 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/python/Python/
Dtraceback.c302 PyObject *syspath; in _Py_FindSourceFile() local
325 syspath = _PySys_GetObjectId(&PyId_path); in _Py_FindSourceFile()
326 if (syspath == NULL || !PyList_Check(syspath)) in _Py_FindSourceFile()
328 npath = PyList_Size(syspath); in _Py_FindSourceFile()
331 v = PyList_GetItem(syspath, i); in _Py_FindSourceFile()
/third_party/libinput/tools/
Dlibinput-measure-fuzz.py279 syspath = device.path.replace('/dev/input/', '/sys/class/input/')
281 print('Running udevadm trigger {}'.format(syspath))
282 subprocess.run(['udevadm', 'trigger', syspath], check=True)
/third_party/eudev/export_include/
Dlibudev.h81 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/
Dtest_pkg.py51 self.syspath = list(sys.path)
55 sys.path[:] = self.syspath
/third_party/gstreamer/gstplugins_good/sys/v4l2/
Dgstv4l2deviceprovider.h89 gchar *syspath; member

12