Home
last modified time | relevance | path

Searched refs:udev_ctx (Results 1 – 1 of 1) sorted by relevance

/external/libusb/libusb/os/
Dlinux_udev.c46 static struct udev *udev_ctx = NULL; variable
59 assert(udev_ctx == NULL); in linux_udev_start_event_monitor()
60 udev_ctx = udev_new(); in linux_udev_start_event_monitor()
61 if (!udev_ctx) { in linux_udev_start_event_monitor()
66 udev_monitor = udev_monitor_new_from_netlink(udev_ctx, "udev"); in linux_udev_start_event_monitor()
120 udev_unref(udev_ctx); in linux_udev_start_event_monitor()
122 udev_ctx = NULL; in linux_udev_start_event_monitor()
131 assert(udev_ctx != NULL); in linux_udev_stop_event_monitor()
149 udev_unref(udev_ctx); in linux_udev_stop_event_monitor()
150 udev_ctx = NULL; in linux_udev_stop_event_monitor()
[all …]