Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
page.h File Reference

Go to the source code of this file.

Macros

#define __ASM_CONST(x)   x##UL
 
#define ASM_CONST(x)   __ASM_CONST(x)
 
#define PAGE_SHIFT   12
 
#define PAGE_SIZE   (ASM_CONST(1) << PAGE_SHIFT)
 
#define PAGE_MASK   (~(PAGE_SIZE-1))
 
#define _ALIGN_UP(addr, size)   (((addr)+((size)-1))&(~((size)-1)))
 
#define _ALIGN_DOWN(addr, size)   ((addr)&(~((size)-1)))
 
#define _ALIGN(addr, size)   _ALIGN_UP(addr,size)
 
#define PAGE_ALIGN(addr)   _ALIGN(addr, PAGE_SIZE)
 

Macro Definition Documentation

#define __ASM_CONST (   x)    x##UL

Definition at line 15 of file page.h.

#define _ALIGN (   addr,
  size 
)    _ALIGN_UP(addr,size)

Definition at line 29 of file page.h.

#define _ALIGN_DOWN (   addr,
  size 
)    ((addr)&(~((size)-1)))

Definition at line 26 of file page.h.

#define _ALIGN_UP (   addr,
  size 
)    (((addr)+((size)-1))&(~((size)-1)))

Definition at line 25 of file page.h.

#define ASM_CONST (   x)    __ASM_CONST(x)

Definition at line 16 of file page.h.

#define PAGE_ALIGN (   addr)    _ALIGN(addr, PAGE_SIZE)

Definition at line 32 of file page.h.

#define PAGE_MASK   (~(PAGE_SIZE-1))

Definition at line 22 of file page.h.

#define PAGE_SHIFT   12

Definition at line 20 of file page.h.

#define PAGE_SIZE   (ASM_CONST(1) << PAGE_SHIFT)

Definition at line 21 of file page.h.