/* Return the state of the driver rooted at the given store path, or XenbusStateUnknown if no state can be read.  */
enum xenbus_state xenbus_read_driver_state(const char *path)
/* Return the state of the driver rooted at the given store path, or XenbusStateUnknown if no state can be read.  */
enum xenbus_state xenbus_read_driver_state(const char *path)
{
	enum xenbus_state result;
	int err = xenbus_gather(XBT_NIL, path, "state", "%d", &result, NULL);
	if (err)
		result = XenbusStateUnknown;
	return result;
}