vki-xen-schedop.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. This file is part of Valgrind, a dynamic binary instrumentation
  3. framework.
  4. Copyright (C) 2012-2017 Citrix
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the
  8. License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  16. 02111-1307, USA.
  17. The GNU General Public License is contained in the file COPYING.
  18. */
  19. /* Contributed by Andrew Cooper <andrew.cooper3@citrix.com>
  20. and Ian Campbell <ian.campbell@citrix.com> */
  21. #ifndef __VKI_XEN_SCHED_OP_H
  22. #define __VKI_XEN_SCHED_OP_H
  23. #define VKI_XEN_SCHEDOP_yield 0
  24. #define VKI_XEN_SCHEDOP_block 1
  25. #define VKI_XEN_SCHEDOP_shutdown 2
  26. #define VKI_XEN_SCHEDOP_poll 3
  27. #define VKI_XEN_SCHEDOP_remote_shutdown 4
  28. struct vki_xen_remote_shutdown {
  29. vki_xen_domid_t domain_id;
  30. unsigned int reason;
  31. };
  32. typedef struct vki_xen_remote_shutdown vki_xen_remote_shutdown_t;
  33. #define VKI_XEN_SCHEDOP_shutdown_code 5
  34. #define VKI_XEN_SCHEDOP_watchdog 6
  35. #endif /* __VKI_XEN_SCHED_OP_H */