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

Go to the source code of this file.

Macros

#define alpha_pa_to_nid(pa)
 
#define node_mem_start(nid)
 
#define node_mem_size(nid)
 
#define pa_to_nid(pa)   alpha_pa_to_nid(pa)
 
#define NODE_DATA(nid)   (&node_data[(nid)])
 
#define node_localnr(pfn, nid)   ((pfn) - NODE_DATA(nid)->node_start_pfn)
 
#define PLAT_NODE_DATA_LOCALNR(p, n)   (((p) >> PAGE_SHIFT) - PLAT_NODE_DATA(n)->gendata.node_start_pfn)
 

Variables

pg_data_t node_data []
 

Macro Definition Documentation

#define alpha_pa_to_nid (   pa)
Value:
(alpha_mv.pa_to_nid \
? alpha_mv.pa_to_nid(pa) \
: (0))

Definition at line 18 of file mmzone.h.

#define NODE_DATA (   nid)    (&node_data[(nid)])

Definition at line 32 of file mmzone.h.

#define node_localnr (   pfn,
  nid 
)    ((pfn) - NODE_DATA(nid)->node_start_pfn)

Definition at line 34 of file mmzone.h.

#define node_mem_size (   nid)
Value:
(alpha_mv.node_mem_size \
? alpha_mv.node_mem_size(nid) \
: ((nid) ? (0UL) : (~0UL)))

Definition at line 26 of file mmzone.h.

#define node_mem_start (   nid)
Value:
(alpha_mv.node_mem_start \
? alpha_mv.node_mem_start(nid) \
: (0UL))

Definition at line 22 of file mmzone.h.

#define pa_to_nid (   pa)    alpha_pa_to_nid(pa)

Definition at line 31 of file mmzone.h.

#define PLAT_NODE_DATA_LOCALNR (   p,
  n 
)    (((p) >> PAGE_SHIFT) - PLAT_NODE_DATA(n)->gendata.node_start_pfn)

Definition at line 37 of file mmzone.h.

Variable Documentation

Definition at line 21 of file numa.c.