Home
last modified time | relevance | path

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

/external/libusb/libusb/os/
Dlinux_udev.c36 static int udev_monitor_fd = -1; variable
72 udev_monitor_fd = udev_monitor_get_fd(udev_monitor); in linux_udev_start_event_monitor()
76 r = fcntl(udev_monitor_fd, F_GETFD); in linux_udev_start_event_monitor()
82 if (fcntl(udev_monitor_fd, F_SETFD, r | FD_CLOEXEC) == -1) { in linux_udev_start_event_monitor()
91 r = fcntl(udev_monitor_fd, F_GETFL); in linux_udev_start_event_monitor()
97 if (fcntl(udev_monitor_fd, F_SETFL, r | O_NONBLOCK) == -1) { in linux_udev_start_event_monitor()
123 udev_monitor_fd = -1; in linux_udev_start_event_monitor()
137 assert(udev_monitor_fd != -1); in linux_udev_stop_event_monitor()
152 udev_monitor_fd = -1; in linux_udev_stop_event_monitor()
166 { .fd = udev_monitor_fd, in linux_udev_event_thread_main()