Lines Matching defs:ctrl_msg
53 static struct udevd_ctrl_msg ctrl_msg;
73 memset(&ctrl_msg, 0x00, sizeof(struct udevd_ctrl_msg));
74 strcpy(ctrl_msg.magic, UDEVD_CTRL_MAGIC);
78 ctrl_msg.type = UDEVD_CTRL_STOP_EXEC_QUEUE;
80 ctrl_msg.type = UDEVD_CTRL_START_EXEC_QUEUE;
82 ctrl_msg.type = UDEVD_CTRL_RELOAD_RULES;
84 intval = (int *) ctrl_msg.buf;
86 ctrl_msg.type = UDEVD_CTRL_SET_LOG_LEVEL;
93 intval = (int *) ctrl_msg.buf;
95 ctrl_msg.type = UDEVD_CTRL_SET_MAX_CHILDS;
107 intval = (int *) ctrl_msg.buf;
109 ctrl_msg.type = UDEVD_CTRL_SET_MAX_CHILDS_RUNNING;
123 ctrl_msg.type = UDEVD_CTRL_ENV;
124 strlcpy(ctrl_msg.buf, val, sizeof(ctrl_msg.buf));
159 retval = sendto(sock, &ctrl_msg, sizeof(ctrl_msg), 0, (struct sockaddr *)&saddr, addrlen);
164 dbg("sent message type=0x%02x, %u bytes sent", ctrl_msg.type, retval);