Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ramster.h
Go to the documentation of this file.
1 
2 /*
3  * zcache/ramster.h
4  *
5  * Placeholder to resolve ramster references when !CONFIG_RAMSTER
6  * Real ramster.h lives in ramster subdirectory.
7  *
8  * Copyright (c) 2009-2012, Dan Magenheimer, Oracle Corp.
9  */
10 
11 #ifndef _ZCACHE_RAMSTER_H_
12 #define _ZCACHE_RAMSTER_H_
13 
14 #ifdef CONFIG_RAMSTER
15 #include "ramster/ramster.h"
16 #else
17 static inline void ramster_init(bool x, bool y, bool z)
18 {
19 }
20 
21 static inline void ramster_register_pamops(struct tmem_pamops *p)
22 {
23 }
24 
25 static inline int ramster_remotify_pageframe(bool b)
26 {
27  return 0;
28 }
29 
30 static inline void *ramster_pampd_free(void *v, struct tmem_pool *p,
31  struct tmem_oid *o, uint32_t u, bool b)
32 {
33  return NULL;
34 }
35 
36 static inline int ramster_do_preload_flnode(struct tmem_pool *p)
37 {
38  return -1;
39 }
40 
41 static inline bool pampd_is_remote(void *v)
42 {
43  return false;
44 }
45 
46 static inline void ramster_count_foreign_pages(bool b, int i)
47 {
48 }
49 
50 static inline void ramster_cpu_up(int cpu)
51 {
52 }
53 
54 static inline void ramster_cpu_down(int cpu)
55 {
56 }
57 #endif
58 
59 #endif /* _ZCACHE_RAMSTER_H */