/third_party/eudev/src/libudev/ |
D | libudev-monitor.c | 52 struct udev_monitor { struct 95 static struct udev_monitor *udev_monitor_new(struct udev *udev) in udev_monitor_new() 97 struct udev_monitor *udev_monitor; in udev_monitor_new() local 99 udev_monitor = new0(struct udev_monitor, 1); in udev_monitor_new() 100 if (udev_monitor == NULL) in udev_monitor_new() 102 udev_monitor->refcount = 1; in udev_monitor_new() 103 udev_monitor->udev = udev; in udev_monitor_new() 104 udev_list_init(udev, &udev_monitor->filter_subsystem_list, false); in udev_monitor_new() 105 udev_list_init(udev, &udev_monitor->filter_tag_list, true); in udev_monitor_new() 106 return udev_monitor; in udev_monitor_new() [all …]
|
D | libudev.h | 119 struct udev_monitor; 120 struct udev_monitor *udev_monitor_ref(struct udev_monitor *udev_monitor); 121 struct udev_monitor *udev_monitor_unref(struct udev_monitor *udev_monitor); 122 struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor); 124 struct udev_monitor *udev_monitor_new_from_netlink(struct udev *udev, const char *name); 126 int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor); 127 int udev_monitor_set_receive_buffer_size(struct udev_monitor *udev_monitor, int size); 128 int udev_monitor_get_fd(struct udev_monitor *udev_monitor); 129 struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_monitor); 131 int udev_monitor_filter_add_match_subsystem_devtype(struct udev_monitor *udev_monitor, [all …]
|
D | libudev-private.h | 76 int udev_monitor_disconnect(struct udev_monitor *udev_monitor); 77 int udev_monitor_allow_unicast_sender(struct udev_monitor *udev_monitor, struct udev_monitor *sende… 78 int udev_monitor_send_device(struct udev_monitor *udev_monitor, 79 struct udev_monitor *destination, struct udev_device *udev_device); 80 struct udev_monitor *udev_monitor_new_from_netlink_fd(struct udev *udev, const char *name, int fd);
|
/third_party/eudev/export_include/ |
D | libudev.h | 119 struct udev_monitor; 120 struct udev_monitor *udev_monitor_ref(struct udev_monitor *udev_monitor); 121 struct udev_monitor *udev_monitor_unref(struct udev_monitor *udev_monitor); 122 struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor); 124 struct udev_monitor *udev_monitor_new_from_netlink(struct udev *udev, const char *name); 126 int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor); 127 int udev_monitor_set_receive_buffer_size(struct udev_monitor *udev_monitor, int size); 128 int udev_monitor_get_fd(struct udev_monitor *udev_monitor); 129 struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_monitor); 131 int udev_monitor_filter_add_match_subsystem_devtype(struct udev_monitor *udev_monitor, [all …]
|
/third_party/libusb/libusb/os/ |
D | linux_udev.c | 38 static struct udev_monitor *udev_monitor = NULL; variable 55 udev_monitor = udev_monitor_new_from_netlink(udev_ctx, "udev"); in linux_udev_start_event_monitor() 56 if (!udev_monitor) { in linux_udev_start_event_monitor() 61 r = udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "usb", "usb_device"); in linux_udev_start_event_monitor() 67 if (udev_monitor_enable_receiving(udev_monitor)) { in linux_udev_start_event_monitor() 72 udev_monitor_fd = udev_monitor_get_fd(udev_monitor); in linux_udev_start_event_monitor() 121 udev_monitor_unref(udev_monitor); in linux_udev_start_event_monitor() 122 udev_monitor = NULL; in linux_udev_start_event_monitor() 136 assert(udev_monitor != NULL); in linux_udev_stop_event_monitor() 150 udev_monitor_unref(udev_monitor); in linux_udev_stop_event_monitor() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/core/linux/ |
D | SDL_udev.h | 72 struct udev_monitor *udev_mon; 93 int (*udev_monitor_enable_receiving)(struct udev_monitor *); 94 …int (*udev_monitor_filter_add_match_subsystem_devtype)(struct udev_monitor *, const char *, const … 95 int (*udev_monitor_get_fd)(struct udev_monitor *); 96 struct udev_monitor *(*udev_monitor_new_from_netlink)(struct udev *, const char *); 97 struct udev_device *(*udev_monitor_receive_device)(struct udev_monitor *); 98 void (*udev_monitor_unref)(struct udev_monitor *);
|
/third_party/eudev/src/udev/ |
D | udevadm-monitor.c | 86 _cleanup_udev_monitor_unref_ struct udev_monitor *udev_monitor = NULL; in adm_monitor() local 87 _cleanup_udev_monitor_unref_ struct udev_monitor *kernel_monitor = NULL; in adm_monitor() 171 udev_monitor = udev_monitor_new_from_netlink(udev, "udev"); in adm_monitor() 172 if (udev_monitor == NULL) { in adm_monitor() 176 udev_monitor_set_receive_buffer_size(udev_monitor, 128*1024*1024); in adm_monitor() 177 fd_udev = udev_monitor_get_fd(udev_monitor); in adm_monitor() 183 … if (udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, subsys, devtype) < 0) in adm_monitor() 190 if (udev_monitor_filter_add_match_tag(udev_monitor, tag) < 0) in adm_monitor() 194 if (udev_monitor_enable_receiving(udev_monitor) < 0) { in adm_monitor() 269 device = udev_monitor_receive_device(udev_monitor); in adm_monitor()
|
D | udevd.c | 60 static struct udev_monitor *monitor; 123 struct udev_monitor *monitor; 169 static int worker_new(struct worker **ret, struct udev *udev, struct udev_monitor *worker_monitor, … in worker_new() 225 _cleanup_udev_monitor_unref_ struct udev_monitor *worker_monitor = NULL; in worker_spawn()
|
/third_party/libinput/src/ |
D | udev-seat.c | 221 udev_device = udev_monitor_receive_device(input->udev_monitor); in evdev_udev_handler() 262 if (!input->udev_monitor) in udev_input_disable() 265 udev_monitor_unref(input->udev_monitor); in udev_input_disable() 266 input->udev_monitor = NULL; in udev_input_disable() 280 if (input->udev_monitor || !input->seat_id) in udev_input_enable() 283 input->udev_monitor = udev_monitor_new_from_netlink(udev, "udev"); in udev_input_enable() 284 if (!input->udev_monitor) { in udev_input_enable() 290 udev_monitor_filter_add_match_subsystem_devtype(input->udev_monitor, in udev_input_enable() 293 if (udev_monitor_enable_receiving(input->udev_monitor)) { in udev_input_enable() 295 udev_monitor_unref(input->udev_monitor); in udev_input_enable() [all …]
|
D | udev-seat.h | 39 struct udev_monitor *udev_monitor; member
|
/third_party/eudev/test/ |
D | test-libudev.c | 219 struct udev_monitor *udev_monitor = NULL; in test_monitor() local 230 udev_monitor = udev_monitor_new_from_netlink(udev, "udev"); in test_monitor() 231 if (udev_monitor == NULL) { in test_monitor() 235 fd_udev = udev_monitor_get_fd(udev_monitor); in test_monitor() 237 if (udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "block", NULL) < 0 || in test_monitor() 238 udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "tty", NULL) < 0 || in test_monitor() 239 … udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "usb", "usb_device") < 0) { in test_monitor() 244 if (udev_monitor_enable_receiving(udev_monitor) < 0) { in test_monitor() 277 device = udev_monitor_receive_device(udev_monitor); in test_monitor() 293 udev_monitor_unref(udev_monitor); in test_monitor()
|
/third_party/eudev/src/shared/ |
D | udev-util.h | 33 DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_monitor*, udev_monitor_unref);
|
/third_party/libinput/test/ |
D | litest.c | 1855 static struct udev_monitor * 1859 struct udev_monitor *udev_monitor; in udev_setup_monitor() local 1864 udev_monitor = udev_monitor_new_from_netlink(udev, "udev"); in udev_setup_monitor() 1865 litest_assert_notnull(udev_monitor); in udev_setup_monitor() 1866 udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "input", in udev_setup_monitor() 1871 rc = fcntl(udev_monitor_get_fd(udev_monitor), F_SETFL, 0); in udev_setup_monitor() 1873 litest_assert_int_eq(udev_monitor_enable_receiving(udev_monitor), in udev_setup_monitor() 1877 return udev_monitor; in udev_setup_monitor() 1881 udev_wait_for_device_event(struct udev_monitor *udev_monitor, in udev_wait_for_device_event() argument 1892 udev_device = udev_monitor_receive_device(udev_monitor); in udev_wait_for_device_event() [all …]
|
/third_party/weston/libweston/backend-drm/ |
D | drm-internal.h | 254 struct udev_monitor *udev_monitor; member
|
D | drm.c | 2427 event = udev_monitor_receive_device(b->udev_monitor); in udev_drm_event() 2469 udev_monitor_unref(b->udev_monitor); in drm_destroy() 3042 b->udev_monitor = udev_monitor_new_from_netlink(b->udev, "udev"); in drm_backend_create() 3043 if (b->udev_monitor == NULL) { in drm_backend_create() 3047 udev_monitor_filter_add_match_subsystem_devtype(b->udev_monitor, in drm_backend_create() 3051 udev_monitor_get_fd(b->udev_monitor), in drm_backend_create() 3054 if (udev_monitor_enable_receiving(b->udev_monitor) < 0) { in drm_backend_create() 3112 udev_monitor_unref(b->udev_monitor); in drm_backend_create()
|
/third_party/pulseaudio/src/modules/ |
D | module-udev-detect.c | 77 struct udev_monitor *monitor;
|