Release 4.10 arch/x86/mm/pat_internal.h
#ifndef __PAT_INTERNAL_H_
#define __PAT_INTERNAL_H_
extern int pat_debug_enable;
#define dprintk(fmt, arg...) \
do { if (pat_debug_enable) pr_info("x86/PAT: " fmt, ##arg); } while (0)
struct memtype {
u64 start;
u64 end;
u64 subtree_max_end;
enum page_cache_mode type;
struct rb_node rb;
};
static inline char *cattr_name(enum page_cache_mode pcm)
{
switch (pcm) {
case _PAGE_CACHE_MODE_UC: return "uncached";
case _PAGE_CACHE_MODE_UC_MINUS: return "uncached-minus";
case _PAGE_CACHE_MODE_WB: return "write-back";
case _PAGE_CACHE_MODE_WC: return "write-combining";
case _PAGE_CACHE_MODE_WT: return "write-through";
case _PAGE_CACHE_MODE_WP: return "write-protected";
default: return "broken";
}
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
venkatesh pallipadi | venkatesh pallipadi | 38 | 65.52% | 1 | 50.00% |
juergen gross | juergen gross | 20 | 34.48% | 1 | 50.00% |
| Total | 58 | 100.00% | 2 | 100.00% |
#ifdef CONFIG_X86_PAT
extern int rbt_memtype_check_insert(struct memtype *new,
enum page_cache_mode *new_type);
extern struct memtype *rbt_memtype_erase(u64 start, u64 end);
extern struct memtype *rbt_memtype_lookup(u64 addr);
extern int rbt_memtype_copy_nth_element(struct memtype *out, loff_t pos);
#else
static inline int rbt_memtype_check_insert(struct memtype *new,
enum page_cache_mode *new_type)
{ return 0; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
venkatesh pallipadi | venkatesh pallipadi | 18 | 90.00% | 1 | 50.00% |
juergen gross | juergen gross | 2 | 10.00% | 1 | 50.00% |
| Total | 20 | 100.00% | 2 | 100.00% |
static inline struct memtype *rbt_memtype_erase(u64 start, u64 end)
{ return NULL; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
venkatesh pallipadi | venkatesh pallipadi | 14 | 77.78% | 1 | 50.00% |
xiaotian feng | xiaotian feng | 4 | 22.22% | 1 | 50.00% |
| Total | 18 | 100.00% | 2 | 100.00% |
static inline struct memtype *rbt_memtype_lookup(u64 addr)
{ return NULL; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
venkatesh pallipadi | venkatesh pallipadi | 15 | 100.00% | 1 | 100.00% |
| Total | 15 | 100.00% | 1 | 100.00% |
static inline int rbt_memtype_copy_nth_element(struct memtype *out, loff_t pos)
{ return 0; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
venkatesh pallipadi | venkatesh pallipadi | 18 | 100.00% | 1 | 100.00% |
| Total | 18 | 100.00% | 1 | 100.00% |
#endif
#endif /* __PAT_INTERNAL_H_ */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
venkatesh pallipadi | venkatesh pallipadi | 199 | 85.41% | 2 | 40.00% |
juergen gross | juergen gross | 26 | 11.16% | 1 | 20.00% |
xiaotian feng | xiaotian feng | 7 | 3.00% | 1 | 20.00% |
luis r. rodriguez | luis r. rodriguez | 1 | 0.43% | 1 | 20.00% |
| Total | 233 | 100.00% | 5 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.