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

Go to the source code of this file.

Macros

#define PAGE_HOME_UNCACHED   -1
 
#define PAGE_HOME_IMMUTABLE   -2
 
#define PAGE_HOME_INCOHERENT   -3
 
#define PAGE_HOME_UNKNOWN   -5
 
#define PAGE_HOME_HERE   -6
 
#define homecache_alloc_page(gfp_mask, home)   homecache_alloc_pages(gfp_mask, 0, home)
 
#define __homecache_free_page(page)   __homecache_free_pages((page), 0)
 
#define homecache_free_page(page)   homecache_free_pages((page), 0)
 
#define homecache_migrate_kthread()   do {} while (0)
 
#define homecache_kpte_lock()   0
 
#define homecache_kpte_unlock(flags)   do {} while (0)
 

Functions

void flush_remote (unsigned long cache_pfn, unsigned long cache_length, const struct cpumask *cache_cpumask, HV_VirtAddr tlb_va, unsigned long tlb_length, unsigned long tlb_pgsize, const struct cpumask *tlb_cpumask, HV_Remote_ASID *asids, int asidcount)
 
pte_t pte_set_home (pte_t pte, int home)
 
void homecache_evict (const struct cpumask *mask)
 
void homecache_change_page_home (struct page *, int order, int home)
 
void homecache_finv_page (struct page *)
 
void homecache_finv_map_page (struct page *, int home)
 
struct pagehomecache_alloc_pages (gfp_t gfp_mask, unsigned int order, int home)
 
struct pagehomecache_alloc_pages_node (int nid, gfp_t gfp_mask, unsigned int order, int home)
 
void __homecache_free_pages (struct page *, unsigned int order)
 
void homecache_free_pages (unsigned long addr, unsigned int order)
 
int page_home (struct page *)
 

Macro Definition Documentation

#define __homecache_free_page (   page)    __homecache_free_pages((page), 0)

Definition at line 116 of file homecache.h.

#define homecache_alloc_page (   gfp_mask,
  home 
)    homecache_alloc_pages(gfp_mask, 0, home)

Definition at line 105 of file homecache.h.

#define homecache_free_page (   page)    homecache_free_pages((page), 0)

Definition at line 117 of file homecache.h.

#define homecache_kpte_lock ( )    0

Definition at line 128 of file homecache.h.

#define homecache_kpte_unlock (   flags)    do {} while (0)

Definition at line 129 of file homecache.h.

#define homecache_migrate_kthread ( )    do {} while (0)

Definition at line 126 of file homecache.h.

#define PAGE_HOME_HERE   -6

Definition at line 56 of file homecache.h.

#define PAGE_HOME_IMMUTABLE   -2

Definition at line 39 of file homecache.h.

#define PAGE_HOME_INCOHERENT   -3

Definition at line 45 of file homecache.h.

#define PAGE_HOME_UNCACHED   -1

Definition at line 32 of file homecache.h.

#define PAGE_HOME_UNKNOWN   -5

Definition at line 53 of file homecache.h.

Function Documentation

void __homecache_free_pages ( struct page ,
unsigned int  order 
)

Definition at line 435 of file homecache.c.

void flush_remote ( unsigned long  cache_pfn,
unsigned long  cache_length,
const struct cpumask cache_cpumask,
HV_VirtAddr  tlb_va,
unsigned long  tlb_length,
unsigned long  tlb_pgsize,
const struct cpumask tlb_cpumask,
HV_Remote_ASID asids,
int  asidcount 
)

Definition at line 116 of file homecache.c.

struct page* homecache_alloc_pages ( gfp_t  gfp_mask,
unsigned int  order,
int  home 
)
read

Definition at line 412 of file homecache.c.

struct page* homecache_alloc_pages_node ( int  nid,
gfp_t  gfp_mask,
unsigned int  order,
int  home 
)
read

Definition at line 424 of file homecache.c.

void homecache_change_page_home ( struct page ,
int  order,
int  home 
)

Definition at line 391 of file homecache.c.

void homecache_evict ( const struct cpumask mask)

Definition at line 249 of file homecache.c.

void homecache_finv_map_page ( struct page ,
int  home 
)

Definition at line 185 of file homecache.c.

void homecache_finv_page ( struct page )

Definition at line 244 of file homecache.c.

void homecache_free_pages ( unsigned long  addr,
unsigned int  order 
)

Definition at line 449 of file homecache.c.

int page_home ( struct page )

Definition at line 380 of file homecache.c.

pte_t pte_set_home ( pte_t  pte,
int  home 
)

Definition at line 275 of file homecache.c.