Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hypercall.h File Reference
#include <xen/interface/xen.h>
#include <xen/interface/physdev.h>
#include <xen/interface/sched.h>
#include <asm/xen/xcom_hcall.h>

Go to the source code of this file.

Macros

#define _hypercall0(type, name)
 
#define _hypercall1(type, name, a1)
 
#define _hypercall2(type, name, a1, a2)
 
#define _hypercall3(type, name, a1, a2, a3)
 
#define _hypercall4(type, name, a1, a2, a3, a4)
 
#define _hypercall5(type, name, a1, a2, a3, a4, a5)
 
#define HYPERVISOR_update_va_mapping(va, new_val, flags)   (0)
 
#define HYPERVISOR_sched_op   xencomm_hypercall_sched_op
 
#define HYPERVISOR_event_channel_op   xencomm_hypercall_event_channel_op
 
#define HYPERVISOR_callback_op   xencomm_hypercall_callback_op
 
#define HYPERVISOR_multicall   xencomm_hypercall_multicall
 
#define HYPERVISOR_xen_version   xencomm_hypercall_xen_version
 
#define HYPERVISOR_console_io   xencomm_hypercall_console_io
 
#define HYPERVISOR_memory_op   xencomm_hypercall_memory_op
 
#define HYPERVISOR_suspend   xencomm_hypercall_suspend
 
#define HYPERVISOR_vcpu_op   xencomm_hypercall_vcpu_op
 
#define HYPERVISOR_opt_feature   xencomm_hypercall_opt_feature
 
#define HYPERVISOR_mmu_update(req, count, success_count, domid)   ({ BUG(); 0; })
 
#define MULTI_UVMFLAGS_INDEX   0 /* XXX any value */
 

Functions

unsigned long __hypercall (unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4, unsigned long a5, unsigned long cmd)
 
int HYPERVISOR_grant_table_op (unsigned int cmd, void *uop, unsigned int count)
 
int xencomm_arch_hypercall_suspend (struct xencomm_handle *arg)
 

Macro Definition Documentation

#define _hypercall0 (   type,
  name 
)
Value:
({ \
long __res; \
__res = __hypercall(0, 0, 0, 0, 0, __HYPERVISOR_##name);\
(type)__res; \
})

Definition at line 49 of file hypercall.h.

#define _hypercall1 (   type,
  name,
  a1 
)
Value:
({ \
long __res; \
__res = __hypercall((unsigned long)a1, \
0, 0, 0, 0, __HYPERVISOR_##name); \
(type)__res; \
})

Definition at line 56 of file hypercall.h.

#define _hypercall2 (   type,
  name,
  a1,
  a2 
)
Value:
({ \
long __res; \
__res = __hypercall((unsigned long)a1, \
(unsigned long)a2, \
0, 0, 0, __HYPERVISOR_##name); \
(type)__res; \
})

Definition at line 64 of file hypercall.h.

#define _hypercall3 (   type,
  name,
  a1,
  a2,
  a3 
)
Value:
({ \
long __res; \
__res = __hypercall((unsigned long)a1, \
(unsigned long)a2, \
(unsigned long)a3, \
0, 0, __HYPERVISOR_##name); \
(type)__res; \
})

Definition at line 73 of file hypercall.h.

#define _hypercall4 (   type,
  name,
  a1,
  a2,
  a3,
  a4 
)
Value:
({ \
long __res; \
__res = __hypercall((unsigned long)a1, \
(unsigned long)a2, \
(unsigned long)a3, \
(unsigned long)a4, \
0, __HYPERVISOR_##name); \
(type)__res; \
})

Definition at line 83 of file hypercall.h.

#define _hypercall5 (   type,
  name,
  a1,
  a2,
  a3,
  a4,
  a5 
)
Value:
({ \
long __res; \
__res = __hypercall((unsigned long)a1, \
(unsigned long)a2, \
(unsigned long)a3, \
(unsigned long)a4, \
(unsigned long)a5, \
__HYPERVISOR_##name); \
(type)__res; \
})

Definition at line 94 of file hypercall.h.

#define HYPERVISOR_callback_op   xencomm_hypercall_callback_op

Definition at line 207 of file hypercall.h.

#define HYPERVISOR_console_io   xencomm_hypercall_console_io

Definition at line 210 of file hypercall.h.

#define HYPERVISOR_event_channel_op   xencomm_hypercall_event_channel_op

Definition at line 206 of file hypercall.h.

#define HYPERVISOR_memory_op   xencomm_hypercall_memory_op

Definition at line 211 of file hypercall.h.

#define HYPERVISOR_mmu_update (   req,
  count,
  success_count,
  domid 
)    ({ BUG(); 0; })

Definition at line 217 of file hypercall.h.

#define HYPERVISOR_multicall   xencomm_hypercall_multicall

Definition at line 208 of file hypercall.h.

#define HYPERVISOR_opt_feature   xencomm_hypercall_opt_feature

Definition at line 214 of file hypercall.h.

#define HYPERVISOR_sched_op   xencomm_hypercall_sched_op

Definition at line 205 of file hypercall.h.

#define HYPERVISOR_suspend   xencomm_hypercall_suspend

Definition at line 212 of file hypercall.h.

#define HYPERVISOR_update_va_mapping (   va,
  new_val,
  flags 
)    (0)

Definition at line 202 of file hypercall.h.

#define HYPERVISOR_vcpu_op   xencomm_hypercall_vcpu_op

Definition at line 213 of file hypercall.h.

#define HYPERVISOR_xen_version   xencomm_hypercall_xen_version

Definition at line 209 of file hypercall.h.

#define MULTI_UVMFLAGS_INDEX   0 /* XXX any value */

Definition at line 233 of file hypercall.h.

Function Documentation

unsigned long __hypercall ( unsigned long  a1,
unsigned long  a2,
unsigned long  a3,
unsigned long  a4,
unsigned long  a5,
unsigned long  cmd 
)
int HYPERVISOR_grant_table_op ( unsigned int  cmd,
void uop,
unsigned int  count 
)

Definition at line 82 of file grant-table.c.

int xencomm_arch_hypercall_suspend ( struct xencomm_handle *  arg)