Lines Matching refs:UdevCtrl
33 struct UdevCtrl { struct
49 int udev_ctrl_new_from_fd(UdevCtrl **ret, int fd) { in udev_ctrl_new_from_fd() argument
51 UdevCtrl *uctrl; in udev_ctrl_new_from_fd()
61 uctrl = new(UdevCtrl, 1); in udev_ctrl_new_from_fd()
65 *uctrl = (UdevCtrl) { in udev_ctrl_new_from_fd()
83 int udev_ctrl_enable_receiving(UdevCtrl *uctrl) { in udev_ctrl_enable_receiving()
100 static void udev_ctrl_disconnect(UdevCtrl *uctrl) { in udev_ctrl_disconnect()
108 static UdevCtrl *udev_ctrl_free(UdevCtrl *uctrl) { in udev_ctrl_free()
120 DEFINE_TRIVIAL_REF_UNREF_FUNC(UdevCtrl, udev_ctrl, udev_ctrl_free);
122 int udev_ctrl_attach_event(UdevCtrl *uctrl, sd_event *event) { in udev_ctrl_attach_event()
139 sd_event_source *udev_ctrl_get_event_source(UdevCtrl *uctrl) { in udev_ctrl_get_event_source()
145 static void udev_ctrl_disconnect_and_listen_again(UdevCtrl *uctrl) { in udev_ctrl_disconnect_and_listen_again()
152 DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(UdevCtrl*, udev_ctrl_disconnect_and_listen_again, NULL);
155 _cleanup_(udev_ctrl_disconnect_and_listen_againp) UdevCtrl *uctrl = NULL; in udev_ctrl_connection_event_handler()
220 UdevCtrl *uctrl = userdata; in udev_ctrl_event_handler()
267 int udev_ctrl_start(UdevCtrl *uctrl, udev_ctrl_handler_t callback, void *userdata) { in udev_ctrl_start()
294 int udev_ctrl_send(UdevCtrl *uctrl, UdevCtrlMessageType type, const void *data) { in udev_ctrl_send()
325 int udev_ctrl_wait(UdevCtrl *uctrl, usec_t timeout) { in udev_ctrl_wait()