Xen Test Framework
sched.h
Go to the documentation of this file.
1 /*
2  * Xen public xen_version hypercall interface
3  */
4 
5 #ifndef XEN_PUBLIC_SCHED_H
6 #define XEN_PUBLIC_SCHED_H
7 
8 #include "event_channel.h"
9 
10 #define SCHEDOP_yield 0
11 #define SCHEDOP_shutdown 2
12 #define SCHEDOP_poll 3
13 
14 #ifndef __ASSEMBLY__
16  unsigned int reason; /* SHUTDOWN_* */
17 };
18 
19 struct sched_poll {
21  unsigned int nr_ports;
23 };
24 #endif
25 
26 #define SHUTDOWN_poweroff 0 /* Domain exited normally. Clean up and kill. */
27 #define SHUTDOWN_reboot 1 /* Clean up, kill, and then restart. */
28 #define SHUTDOWN_suspend 2 /* Clean up, save suspend info, kill. */
29 #define SHUTDOWN_crash 3 /* Tell controller we've crashed. */
30 #define SHUTDOWN_watchdog 4 /* Restart because watchdog time expired. */
31 
32 #endif /* XEN_PUBLIC_SCHED_H */
33 
34 /*
35  * Local variables:
36  * mode: C
37  * c-file-style: "BSD"
38  * c-basic-offset: 4
39  * tab-width: 4
40  * indent-tabs-mode: nil
41  * End:
42  */
uint64_t timeout
Definition: sched.h:22
uint32_t evtchn_port_t
Definition: event_channel.h:11
evtchn_port_t * ports
Definition: sched.h:20
__UINT64_TYPE__ uint64_t
Definition: stdint.h:17
unsigned int reason
Definition: sched.h:16
unsigned int nr_ports
Definition: sched.h:21