11 return c >=
'0' && c <=
'9';
19 printk(
"******************************\n");
26 printk(
"******************************\n");
37 for ( i = 0; i < 128; i++ )
65 op.status.port =
port;
74 return op.status.unbound.dom;
85 unsigned int domid = 0;
92 domid = domid * 10 + (*
str -
'0');
static unsigned int str(void)
void vprintk(const char *fmt, va_list args)
void printk(const char *fmt,...)
Interfaces used by common code, needing to be implemented by arch/environment specific code.
void arch_crash_hard(void)
static int hypercall_evtchn_alloc_unbound(struct evtchn_alloc_unbound *ub)
static int hypercall_evtchn_close(evtchn_port_t port)
static long hypercall_sysctl(xen_sysctl_t *arg)
static int hypercall_evtchn_status(struct evtchn_status *status)
static long hypercall_shutdown(unsigned int reason)
int xtf_get_domid(void)
Obtain the current domid.
static int evtchn_get_domid(void)
static int xenstore_get_domid(void)
int xtf_probe_sysctl_interface_version(void)
Probe for the SYSCTL_INTERFACE_VERSION in use by the hypervisor.
void panic(const char *fmt,...)
static int isdigit(int c)
static enum test_status status
Current status of this test.
__builtin_va_list va_list
uint32_t interface_version
#define DOMID_FIRST_RESERVED
const char * xenstore_read(const char *path)
Issue a XS_READ operation for key, waiting synchronously for the reply.
int xenstore_init(void)
Initialise XTF ready for xenstore communication, and determine whether xenstored is listening.