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

Go to the source code of this file.

Data Structures

struct  xencomm_mini
 

Macros

#define XENCOMM_MINI_ADDRS   3
 
#define XENCOMM_MINI_ALIGNED(xc_desc, n)
 
#define xencomm_map_no_alloc(ptr, bytes)
 
#define xen_guest_handle(hnd)   ((hnd).p)
 

Functions

void xencomm_free (struct xencomm_handle *desc)
 
struct xencomm_handle * xencomm_map (void *ptr, unsigned long bytes)
 
struct xencomm_handle * __xencomm_map_no_alloc (void *ptr, unsigned long bytes, struct xencomm_mini *xc_area)
 
unsigned long xencomm_vtop (unsigned long vaddr)
 

Macro Definition Documentation

#define xen_guest_handle (   hnd)    ((hnd).p)

Definition at line 75 of file xencomm.h.

#define xencomm_map_no_alloc (   ptr,
  bytes 
)
Value:
({ XENCOMM_MINI_ALIGNED(xc_desc, 1); \
__xencomm_map_no_alloc(ptr, bytes, xc_desc); })

Definition at line 63 of file xencomm.h.

#define XENCOMM_MINI_ADDRS   3

Definition at line 27 of file xencomm.h.

#define XENCOMM_MINI_ALIGNED (   xc_desc,
  n 
)
Value:
unsigned char xc_desc ## _base[((n) + 1 ) * \
sizeof(struct xencomm_mini)]; \
struct xencomm_mini *xc_desc = (struct xencomm_mini *) \
((unsigned long)xc_desc ## _base + \
(sizeof(struct xencomm_mini) - \
((unsigned long)xc_desc ## _base) % \
sizeof(struct xencomm_mini)));

Definition at line 54 of file xencomm.h.

Function Documentation

struct xencomm_handle* __xencomm_map_no_alloc ( void ptr,
unsigned long  bytes,
struct xencomm_mini xc_area 
)
read

Definition at line 201 of file xencomm.c.

void xencomm_free ( struct xencomm_handle *  desc)

Definition at line 106 of file xencomm.c.

struct xencomm_handle* xencomm_map ( void ptr,
unsigned long  bytes 
)
read

Definition at line 185 of file xencomm.c.

unsigned long xencomm_vtop ( unsigned long  vaddr)

Definition at line 43 of file xencomm.c.