Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
memory.c File Reference
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/pagemap.h>
#include <linux/gfp.h>
#include <asm/setup.h>
#include <asm/segment.h>
#include <asm/page.h>
#include <asm/pgalloc.h>
#include <asm/traps.h>
#include <asm/machdep.h>

Go to the source code of this file.

Macros

#define PD_PTABLE(page)   ((ptable_desc *)&(virt_to_page(page)->lru))
 
#define PD_PAGE(ptable)   (list_entry(ptable, struct page, lru))
 
#define PD_MARKBITS(dp)   (*(unsigned char *)&PD_PAGE(dp)->index)
 
#define PTABLE_SIZE   (PTRS_PER_PMD * sizeof(pmd_t))
 

Typedefs

typedef struct list_head ptable_desc
 

Functions

void __init init_pointer_table (unsigned long ptable)
 
pmd_tget_pointer_table (void)
 
int free_pointer_table (pmd_t *ptable)
 
void cache_clear (unsigned long paddr, int len)
 
 EXPORT_SYMBOL (cache_clear)
 
void cache_push (unsigned long paddr, int len)
 
 EXPORT_SYMBOL (cache_push)
 

Macro Definition Documentation

#define PD_MARKBITS (   dp)    (*(unsigned char *)&PD_PAGE(dp)->index)

Definition at line 33 of file memory.c.

#define PD_PAGE (   ptable)    (list_entry(ptable, struct page, lru))

Definition at line 32 of file memory.c.

#define PD_PTABLE (   page)    ((ptable_desc *)&(virt_to_page(page)->lru))

Definition at line 31 of file memory.c.

#define PTABLE_SIZE   (PTRS_PER_PMD * sizeof(pmd_t))

Definition at line 35 of file memory.c.

Typedef Documentation

Definition at line 28 of file memory.c.

Function Documentation

void cache_clear ( unsigned long  paddr,
int  len 
)

Definition at line 203 of file memory.c.

void cache_push ( unsigned long  paddr,
int  len 
)

Definition at line 252 of file memory.c.

EXPORT_SYMBOL ( cache_clear  )
EXPORT_SYMBOL ( cache_push  )
int free_pointer_table ( pmd_t ptable)

Definition at line 101 of file memory.c.

pmd_t* get_pointer_table ( void  )

Definition at line 61 of file memory.c.

void __init init_pointer_table ( unsigned long  ptable)

Definition at line 37 of file memory.c.