Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cache.c File Reference
#include <linux/init.h>
#include <linux/linkage.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <asm/mmu_context.h>

Go to the source code of this file.

Functions

void flush_dcache_page (struct page *page)
 
void __update_cache (struct vm_area_struct *vma, unsigned long address, pte_t pte)
 
void __devinit cpu_cache_init (void)
 
void flush_icache_all (void)
 
void flush_dcache_all (void)
 
void flush_cache_all (void)
 
void flush_cache_mm (struct mm_struct *mm)
 
void flush_cache_range (struct vm_area_struct *vma, unsigned long start, unsigned long end)
 
void flush_cache_page (struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)
 
void flush_cache_sigtramp (unsigned long addr)
 
void flush_dcache_range (unsigned long start, unsigned long end)
 
void flush_icache_range (unsigned long start, unsigned long end)
 

Function Documentation

void __update_cache ( struct vm_area_struct vma,
unsigned long  address,
pte_t  pte 
)

Definition at line 77 of file cache.c.

void __devinit cpu_cache_init ( void  )

Definition at line 116 of file cache.c.

void flush_cache_all ( void  )

Definition at line 141 of file cache.c.

void flush_cache_mm ( struct mm_struct mm)

Definition at line 154 of file cache.c.

void flush_cache_page ( struct vm_area_struct vma,
unsigned long  addr,
unsigned long  pfn 
)

Definition at line 210 of file cache.c.

void flush_cache_range ( struct vm_area_struct vma,
unsigned long  start,
unsigned long  end 
)

Definition at line 171 of file cache.c.

void flush_cache_sigtramp ( unsigned long  addr)

Definition at line 222 of file cache.c.

void flush_dcache_all ( void  )

Definition at line 130 of file cache.c.

void flush_dcache_page ( struct page page)

Definition at line 55 of file cache.c.

void flush_dcache_range ( unsigned long  start,
unsigned long  end 
)

Definition at line 245 of file cache.c.

void flush_icache_all ( void  )

Definition at line 121 of file cache.c.

void flush_icache_range ( unsigned long  start,
unsigned long  end 
)

flush_icache_range - Globally flush dcache and invalidate icache for region : The starting virtual address of the region. : The ending virtual address of the region.

This is used by the kernel to globally flush some code it has just written from the dcache back to RAM and then to globally invalidate the icache over that region so that that code can be run on all CPUs in the system.

Definition at line 264 of file cache.c.