FreeBSD/sys/xen/xenbus/xenbus.c
/*--------------------------- Public Functions -------------------------------*/
/*-------- API comments for these methods can be found in xenbusvar.h --------*/
Public Functions
API comments for these methods can be found in xenbusvar.h
Public Functions API comments for these methods can be found in xenbusvar . h
const char *
xenbus_strstate(XenbusState state)
{
	static const char *const name[] = {
		[ XenbusStateUnknown      ] = "Unknown",
		[ XenbusStateInitialising ] = "Initialising",
		[ XenbusStateInitWait     ] = "InitWait",
		[ XenbusStateInitialised  ] = "Initialised",
		[ XenbusStateConnected    ] = "Connected",
		[ XenbusStateClosing      ] = "Closing",
		[ XenbusStateClosed	  ] = "Closed",
	};
	return ((state < (XenbusStateClosed + 1)) ? name[state] : "INVALID");
}
const char * xenbus_strstate ( XenbusState state ) { static const char * const name [ ] = { [ XenbusStateUnknown ] = " " , [ XenbusStateInitialising ] = " " , [ XenbusStateInitWait ] = " " , [ XenbusStateInitialised ] = " " , [ XenbusStateConnected ] = " " , [ XenbusStateClosing ] = " " , [ XenbusStateClosed ] = " " , } ; return ( ( state < ( XenbusStateClosed + 1 ) ) ? name [ state ] : " " ) ; }
Public Functions
API comments for these methods can be found in xenbusvar.h
Public Functions API comments for these methods can be found in xenbusvar . h