Home
last modified time | relevance | path

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

/third_party/eudev/src/udev/
Dudev-ctrl.c428 struct udev_ctrl_msg *udev_ctrl_msg_unref(struct udev_ctrl_msg *ctrl_msg) { in udev_ctrl_msg_unref() argument
429 if (ctrl_msg && -- ctrl_msg->refcount == 0) { in udev_ctrl_msg_unref()
430 udev_ctrl_connection_unref(ctrl_msg->conn); in udev_ctrl_msg_unref()
431 free(ctrl_msg); in udev_ctrl_msg_unref()
437 int udev_ctrl_get_set_log_level(struct udev_ctrl_msg *ctrl_msg) { in udev_ctrl_get_set_log_level() argument
438 if (ctrl_msg->ctrl_msg_wire.type == UDEV_CTRL_SET_LOG_LEVEL) in udev_ctrl_get_set_log_level()
439 return ctrl_msg->ctrl_msg_wire.intval; in udev_ctrl_get_set_log_level()
443 int udev_ctrl_get_stop_exec_queue(struct udev_ctrl_msg *ctrl_msg) { in udev_ctrl_get_stop_exec_queue() argument
444 if (ctrl_msg->ctrl_msg_wire.type == UDEV_CTRL_STOP_EXEC_QUEUE) in udev_ctrl_get_stop_exec_queue()
449 int udev_ctrl_get_start_exec_queue(struct udev_ctrl_msg *ctrl_msg) { in udev_ctrl_get_start_exec_queue() argument
[all …]
Dudev.h139 struct udev_ctrl_msg *udev_ctrl_msg_unref(struct udev_ctrl_msg *ctrl_msg);
140 int udev_ctrl_get_set_log_level(struct udev_ctrl_msg *ctrl_msg);
141 int udev_ctrl_get_stop_exec_queue(struct udev_ctrl_msg *ctrl_msg);
142 int udev_ctrl_get_start_exec_queue(struct udev_ctrl_msg *ctrl_msg);
143 int udev_ctrl_get_reload(struct udev_ctrl_msg *ctrl_msg);
144 int udev_ctrl_get_ping(struct udev_ctrl_msg *ctrl_msg);
145 int udev_ctrl_get_exit(struct udev_ctrl_msg *ctrl_msg);
146 const char *udev_ctrl_get_set_env(struct udev_ctrl_msg *ctrl_msg);
147 int udev_ctrl_get_set_children_max(struct udev_ctrl_msg *ctrl_msg);
Dudevd.c700 _cleanup_udev_ctrl_msg_unref_ struct udev_ctrl_msg *ctrl_msg = NULL; in handle_ctrl_msg() local
710 ctrl_msg = udev_ctrl_receive_msg(ctrl_conn); in handle_ctrl_msg()
711 if (!ctrl_msg) in handle_ctrl_msg()
714 i = udev_ctrl_get_set_log_level(ctrl_msg); in handle_ctrl_msg()
721 if (udev_ctrl_get_stop_exec_queue(ctrl_msg) > 0) { in handle_ctrl_msg()
726 if (udev_ctrl_get_start_exec_queue(ctrl_msg) > 0) { in handle_ctrl_msg()
731 if (udev_ctrl_get_reload(ctrl_msg) > 0) { in handle_ctrl_msg()
736 str = udev_ctrl_get_set_env(ctrl_msg); in handle_ctrl_msg()
763 i = udev_ctrl_get_set_children_max(ctrl_msg); in handle_ctrl_msg()
769 if (udev_ctrl_get_ping(ctrl_msg) > 0) { in handle_ctrl_msg()
[all …]