Lines Matching refs:state
101 char *state;
103 state = kmem_alloc(strlen(path) + 1 + strlen(path2) + 1, KM_SLEEP);
104 (void) strcpy(state, path);
105 (void) strcat(state, "/");
106 (void) strcat(state, path2);
108 err = xenbus_watch_path(dev, state, watch, callback);
110 kmem_free(state, strlen(state) + 1);
116 * check whether the state is currently set to the given value, and if not,
117 * then the state is set. We don't want to unconditionally write the given
118 * state, because we don't want to fire watches unnecessarily. Furthermore, if
123 * the state?
127 XenbusState state)
132 err = xenbus_scanf(xbt, dev->nodename, "state", "%d", ¤t_state);
142 if ((XenbusState)current_state != state) {
143 err = xenbus_printf(xbt, dev->nodename, "state", "%d", state);
145 xenbus_dev_fatal(dev, err, "writing new state");
273 int err = xenbus_gather(XBT_NULL, path, "state", "%d", &result, NULL);