brintos

brintos / linux-shallow public Read only

0
0
Text · 1.1 KiB · 44456e2 Raw
42 lines · c
1/* SPDX-License-Identifier: MIT */2/*****************************************************************************3 * xenbus.h4 *5 * Xenbus protocol details.6 *7 * Copyright (C) 2005 XenSource Ltd.8 */9 10#ifndef _XEN_PUBLIC_IO_XENBUS_H11#define _XEN_PUBLIC_IO_XENBUS_H12 13/* The state of either end of the Xenbus, i.e. the current communication14   status of initialisation across the bus.  States here imply nothing about15   the state of the connection between the driver and the kernel's device16   layers.  */17enum xenbus_state18{19	XenbusStateUnknown      = 0,20	XenbusStateInitialising = 1,21	XenbusStateInitWait     = 2,  /* Finished early22					 initialisation, but waiting23					 for information from the peer24					 or hotplug scripts. */25	XenbusStateInitialised  = 3,  /* Initialised and waiting for a26					 connection from the peer. */27	XenbusStateConnected    = 4,28	XenbusStateClosing      = 5,  /* The device is being closed29					 due to an error or an unplug30					 event. */31	XenbusStateClosed       = 6,32 33	/*34	* Reconfiguring: The device is being reconfigured.35	*/36	XenbusStateReconfiguring = 7,37 38	XenbusStateReconfigured  = 839};40 41#endif /* _XEN_PUBLIC_IO_XENBUS_H */42