Lines Matching refs:UdevCtrl
9 typedef struct UdevCtrl UdevCtrl; typedef
28 typedef int (*udev_ctrl_handler_t)(UdevCtrl *udev_ctrl, UdevCtrlMessageType type,
31 int udev_ctrl_new_from_fd(UdevCtrl **ret, int fd);
32 static inline int udev_ctrl_new(UdevCtrl **ret) { in udev_ctrl_new()
36 int udev_ctrl_enable_receiving(UdevCtrl *uctrl);
37 UdevCtrl *udev_ctrl_ref(UdevCtrl *uctrl);
38 UdevCtrl *udev_ctrl_unref(UdevCtrl *uctrl);
39 int udev_ctrl_attach_event(UdevCtrl *uctrl, sd_event *event);
40 int udev_ctrl_start(UdevCtrl *uctrl, udev_ctrl_handler_t callback, void *userdata);
41 sd_event_source *udev_ctrl_get_event_source(UdevCtrl *uctrl);
43 int udev_ctrl_wait(UdevCtrl *uctrl, usec_t timeout);
45 int udev_ctrl_send(UdevCtrl *uctrl, UdevCtrlMessageType type, const void *data);
46 static inline int udev_ctrl_send_set_log_level(UdevCtrl *uctrl, int priority) { in udev_ctrl_send_set_log_level()
50 static inline int udev_ctrl_send_stop_exec_queue(UdevCtrl *uctrl) { in udev_ctrl_send_stop_exec_queue()
54 static inline int udev_ctrl_send_start_exec_queue(UdevCtrl *uctrl) { in udev_ctrl_send_start_exec_queue()
58 static inline int udev_ctrl_send_reload(UdevCtrl *uctrl) { in udev_ctrl_send_reload()
62 static inline int udev_ctrl_send_set_env(UdevCtrl *uctrl, const char *key) { in udev_ctrl_send_set_env()
66 static inline int udev_ctrl_send_set_children_max(UdevCtrl *uctrl, int count) { in udev_ctrl_send_set_children_max()
70 static inline int udev_ctrl_send_ping(UdevCtrl *uctrl) { in udev_ctrl_send_ping()
74 static inline int udev_ctrl_send_exit(UdevCtrl *uctrl) { in udev_ctrl_send_exit()
78 DEFINE_TRIVIAL_CLEANUP_FUNC(UdevCtrl*, udev_ctrl_unref);