cregit-Linux how code gets into the kernel

Release 4.12 include/linux/vmacache.h

Directory: include/linux
#ifndef __LINUX_VMACACHE_H

#define __LINUX_VMACACHE_H

#include <linux/sched.h>
#include <linux/mm.h>

/*
 * Hash based on the page number. Provides a good hit rate for
 * workloads with good locality and those with random accesses as well.
 */

#define VMACACHE_HASH(addr) ((addr >> PAGE_SHIFT) & VMACACHE_MASK)


static inline void vmacache_flush(struct task_struct *tsk) { memset(tsk->vmacache.vmas, 0, sizeof(tsk->vmacache.vmas)); }

Contributors

PersonTokensPropCommitsCommitProp
Davidlohr Bueso A2887.50%150.00%
Ingo Molnar412.50%150.00%
Total32100.00%2100.00%

extern void vmacache_flush_all(struct mm_struct *mm); extern void vmacache_update(unsigned long addr, struct vm_area_struct *newvma); extern struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr); #ifndef CONFIG_MMU extern struct vm_area_struct *vmacache_find_exact(struct mm_struct *mm, unsigned long start, unsigned long end); #endif
static inline void vmacache_invalidate(struct mm_struct *mm) { mm->vmacache_seqnum++; /* deal with overflows */ if (unlikely(mm->vmacache_seqnum == 0)) vmacache_flush_all(mm); }

Contributors

PersonTokensPropCommitsCommitProp
Davidlohr Bueso A34100.00%1100.00%
Total34100.00%1100.00%

#endif /* __LINUX_VMACACHE_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Davidlohr Bueso A15097.40%150.00%
Ingo Molnar42.60%150.00%
Total154100.00%2100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.