1 /* SPDX-License-Identifier: MIT */ 1 /* SPDX-License-Identifier: MIT */ 2 /********************************************* 2 /***************************************************************************** 3 * xenbus.h 3 * xenbus.h 4 * 4 * 5 * Xenbus protocol details. 5 * Xenbus protocol details. 6 * 6 * 7 * Copyright (C) 2005 XenSource Ltd. 7 * Copyright (C) 2005 XenSource Ltd. 8 */ 8 */ 9 9 10 #ifndef _XEN_PUBLIC_IO_XENBUS_H 10 #ifndef _XEN_PUBLIC_IO_XENBUS_H 11 #define _XEN_PUBLIC_IO_XENBUS_H 11 #define _XEN_PUBLIC_IO_XENBUS_H 12 12 13 /* The state of either end of the Xenbus, i.e. 13 /* The state of either end of the Xenbus, i.e. the current communication 14 status of initialisation across the bus. S 14 status of initialisation across the bus. States here imply nothing about 15 the state of the connection between the dri 15 the state of the connection between the driver and the kernel's device 16 layers. */ 16 layers. */ 17 enum xenbus_state 17 enum xenbus_state 18 { 18 { 19 XenbusStateUnknown = 0, 19 XenbusStateUnknown = 0, 20 XenbusStateInitialising = 1, 20 XenbusStateInitialising = 1, 21 XenbusStateInitWait = 2, /* Finis 21 XenbusStateInitWait = 2, /* Finished early 22 initi 22 initialisation, but waiting 23 for i 23 for information from the peer 24 or ho 24 or hotplug scripts. */ 25 XenbusStateInitialised = 3, /* Initi 25 XenbusStateInitialised = 3, /* Initialised and waiting for a 26 conne 26 connection from the peer. */ 27 XenbusStateConnected = 4, 27 XenbusStateConnected = 4, 28 XenbusStateClosing = 5, /* The d 28 XenbusStateClosing = 5, /* The device is being closed 29 due t 29 due to an error or an unplug 30 event 30 event. */ 31 XenbusStateClosed = 6, 31 XenbusStateClosed = 6, 32 32 33 /* 33 /* 34 * Reconfiguring: The device is being r 34 * Reconfiguring: The device is being reconfigured. 35 */ 35 */ 36 XenbusStateReconfiguring = 7, 36 XenbusStateReconfiguring = 7, 37 37 38 XenbusStateReconfigured = 8 38 XenbusStateReconfigured = 8 39 }; 39 }; 40 40 41 #endif /* _XEN_PUBLIC_IO_XENBUS_H */ 41 #endif /* _XEN_PUBLIC_IO_XENBUS_H */ 42 42
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.