iPXE
Functions | Variables
xenmem.h File Reference

Xen memory operations. More...

#include <ipxe/xen.h>
#include <xen/memory.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
static __attribute__ ((always_inline)) int xenmem_add_to_physmap(struct xen_hypervisor *xen
 Add page to physical address space. More...
 

Variables

static struct xen_add_to_physmapadd
 
static struct xen_remove_from_physmapremove
 

Detailed Description

Xen memory operations.

Definition in file xenmem.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ __attribute__()

static __attribute__ ( (always_inline)  )
inlinestatic

Add page to physical address space.

Remove page from physical address space.

Parameters
xenXen hypervisor
addPage mapping descriptor
Return values
xenrcXen status code
Parameters
xenXen hypervisor
removePage mapping descriptor
Return values
xenrcXen status code

Variable Documentation

◆ add

struct xen_add_to_physmap* add
Initial value:
{
return xen_hypercall_2 ( xen, __HYPERVISOR_memory_op,
static struct xen_add_to_physmap * add
Definition: xenmem.h:24
static __always_inline unsigned long virt_to_phys(volatile const void *addr)
Convert virtual address to a physical address.
Definition: uaccess.h:287
#define XENMEM_add_to_physmap
Definition: memory.h:229
#define __HYPERVISOR_memory_op
Definition: xen.h:88

Definition at line 24 of file xenmem.h.

◆ remove

struct xen_remove_from_physmap* remove
Initial value:
{
return xen_hypercall_2 ( xen, __HYPERVISOR_memory_op,
static __always_inline unsigned long virt_to_phys(volatile const void *addr)
Convert virtual address to a physical address.
Definition: uaccess.h:287
#define XENMEM_remove_from_physmap
Definition: memory.h:296
static struct xen_remove_from_physmap * remove
Definition: xenmem.h:39
#define __HYPERVISOR_memory_op
Definition: xen.h:88

Definition at line 39 of file xenmem.h.

Referenced by hvm_ioremap(), hvm_iounmap(), and tcp_process_tx_queue().