Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
page.h File Reference
#include <asm/page.h>
#include <asm/pgtable.h>
#include <linux/pfn.h>
#include <linux/types.h>
#include <xen/interface/grant_table.h>

Go to the source code of this file.

Data Structures

struct  xmaddr
 
struct  xpaddr
 

Macros

#define pfn_to_mfn(pfn)   (pfn)
 
#define phys_to_machine_mapping_valid(pfn)   (1)
 
#define mfn_to_pfn(mfn)   (mfn)
 
#define mfn_to_virt(m)   (__va(mfn_to_pfn(m) << PAGE_SHIFT))
 
#define pte_mfn   pte_pfn
 
#define mfn_pte   pfn_pte
 
#define XMADDR(x)   ((xmaddr_t) { .maddr = (x) })
 
#define XPADDR(x)   ((xpaddr_t) { .paddr = (x) })
 
#define INVALID_P2M_ENTRY   (~0UL)
 
#define virt_to_machine(v)   (phys_to_machine(XPADDR(__pa(v))))
 
#define virt_to_pfn(v)   (PFN_DOWN(__pa(v)))
 
#define virt_to_mfn(v)   (pfn_to_mfn(virt_to_pfn(v)))
 
#define mfn_to_virt(m)   (__va(mfn_to_pfn(m) << PAGE_SHIFT))
 

Typedefs

typedef struct xmaddr xmaddr_t
 
typedef struct xpaddr xpaddr_t
 

Macro Definition Documentation

#define INVALID_P2M_ENTRY   (~0UL)

Definition at line 33 of file page.h.

#define mfn_pte   pfn_pte

Definition at line 18 of file page.h.

#define mfn_to_pfn (   mfn)    (mfn)

Definition at line 14 of file page.h.

#define mfn_to_virt (   m)    (__va(mfn_to_pfn(m) << PAGE_SHIFT))

Definition at line 50 of file page.h.

#define mfn_to_virt (   m)    (__va(mfn_to_pfn(m) << PAGE_SHIFT))

Definition at line 50 of file page.h.

#define pfn_to_mfn (   pfn)    (pfn)

Definition at line 12 of file page.h.

#define phys_to_machine_mapping_valid (   pfn)    (1)

Definition at line 13 of file page.h.

#define pte_mfn   pte_pfn

Definition at line 17 of file page.h.

#define virt_to_machine (   v)    (phys_to_machine(XPADDR(__pa(v))))

Definition at line 47 of file page.h.

#define virt_to_mfn (   v)    (pfn_to_mfn(virt_to_pfn(v)))

Definition at line 49 of file page.h.

#define virt_to_pfn (   v)    (PFN_DOWN(__pa(v)))

Definition at line 48 of file page.h.

#define XMADDR (   x)    ((xmaddr_t) { .maddr = (x) })

Definition at line 30 of file page.h.

#define XPADDR (   x)    ((xpaddr_t) { .paddr = (x) })

Definition at line 31 of file page.h.

Typedef Documentation