diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index a61ebe8ad4ca..0416a7204be3 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -2455,6 +2455,12 @@ static inline struct vm_area_struct *find_exact_vma(struct mm_struct *mm, | |||
2455 | return vma; | 2455 | return vma; |
2456 | } | 2456 | } |
2457 | 2457 | ||
2458 | static inline bool range_in_vma(struct vm_area_struct *vma, | ||
2459 | unsigned long start, unsigned long end) | ||
2460 | { | ||
2461 | return (vma && vma->vm_start <= start && end <= vma->vm_end); | ||
2462 | } | ||
2463 | |||
2458 | #ifdef CONFIG_MMU | 2464 | #ifdef CONFIG_MMU |
2459 | pgprot_t vm_get_page_prot(unsigned long vm_flags); | 2465 | pgprot_t vm_get_page_prot(unsigned long vm_flags); |
2460 | void vma_set_page_prot(struct vm_area_struct *vma); | 2466 | void vma_set_page_prot(struct vm_area_struct *vma); |