Lines Matching defs:ctrl_msg
640 struct udevd_ctrl_msg ctrl_msg;
650 memset(&ctrl_msg, 0x00, sizeof(struct udevd_ctrl_msg));
651 iov.iov_base = &ctrl_msg;
679 if (strncmp(ctrl_msg.magic, UDEVD_CTRL_MAGIC, sizeof(UDEVD_CTRL_MAGIC)) != 0 ) {
680 err("message magic '%s' doesn't match, ignore it", ctrl_msg.magic);
684 switch (ctrl_msg.type) {
686 pos = strchr(ctrl_msg.buf, '=');
688 err("wrong key format '%s'", ctrl_msg.buf);
693 info("udevd message (ENV) received, unset '%s'", ctrl_msg.buf);
694 unsetenv(ctrl_msg.buf);
696 info("udevd message (ENV) received, set '%s=%s'", ctrl_msg.buf, &pos[1]);
697 setenv(ctrl_msg.buf, &pos[1], 1);
710 intval = (int *) ctrl_msg.buf;
717 intval = (int *) ctrl_msg.buf;
722 intval = (int *) ctrl_msg.buf;