Home
last modified time | relevance | path

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

/systemd-251/src/udev/
Dudev-ctrl.h9 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);
[all …]
Dudev-ctrl.c33 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()
[all …]
Dudevadm-control.c51 _cleanup_(udev_ctrl_unrefp) UdevCtrl *uctrl = NULL; in control_main()
Dudevadm-settle.c179 _cleanup_(udev_ctrl_unrefp) UdevCtrl *uctrl = NULL; in settle_main()
Dudevadm-trigger.c454 _cleanup_(udev_ctrl_unrefp) UdevCtrl *uctrl = NULL; in trigger_main()
Dudevd.c103 UdevCtrl *ctrl;
1276 static int on_ctrl_msg(UdevCtrl *uctrl, UdevCtrlMessageType type, const UdevCtrlMessageValue *value… in on_ctrl_msg()