Lines Matching refs:event
42 sd_event *event; member
116 sd_event_unref(uctrl->event); in udev_ctrl_free()
122 int udev_ctrl_attach_event(UdevCtrl *uctrl, sd_event *event) { in udev_ctrl_attach_event() argument
126 assert_return(!uctrl->event, -EBUSY); in udev_ctrl_attach_event()
128 if (event) in udev_ctrl_attach_event()
129 uctrl->event = sd_event_ref(event); in udev_ctrl_attach_event()
131 r = sd_event_default(&uctrl->event); in udev_ctrl_attach_event()
252 …r = sd_event_add_io(uctrl->event, &uctrl->event_source_connect, sock, EPOLLIN, udev_ctrl_connectio… in udev_ctrl_event_handler()
272 if (!uctrl->event) { in udev_ctrl_start()
285 …r = sd_event_add_io(uctrl->event, &uctrl->event_source, uctrl->sock, EPOLLIN, udev_ctrl_event_hand… in udev_ctrl_start()
345 if (!uctrl->event) { in udev_ctrl_wait()
351 r = sd_event_add_io(uctrl->event, &source_io, uctrl->sock, EPOLLIN, NULL, INT_TO_PTR(0)); in udev_ctrl_wait()
359 uctrl->event, &source_timeout, CLOCK_BOOTTIME, in udev_ctrl_wait()
368 return sd_event_loop(uctrl->event); in udev_ctrl_wait()