diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index eb815cfc1b35..5c7f8f64f70e 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -170,6 +170,12 @@ struct vm_operations_struct { | |||
170 | /* notification that a previously read-only page is about to become | 170 | /* notification that a previously read-only page is about to become |
171 | * writable, if an error is returned it will cause a SIGBUS */ | 171 | * writable, if an error is returned it will cause a SIGBUS */ |
172 | int (*page_mkwrite)(struct vm_area_struct *vma, struct page *page); | 172 | int (*page_mkwrite)(struct vm_area_struct *vma, struct page *page); |
173 | |||
174 | /* called by access_process_vm when get_user_pages() fails, typically | ||
175 | * for use by special VMAs that can switch between memory and hardware | ||
176 | */ | ||
177 | int (*access)(struct vm_area_struct *vma, unsigned long addr, | ||
178 | void *buf, int len, int write); | ||
173 | #ifdef CONFIG_NUMA | 179 | #ifdef CONFIG_NUMA |
174 | /* | 180 | /* |
175 | * set_policy() op must add a reference to any non-NULL @new mempolicy | 181 | * set_policy() op must add a reference to any non-NULL @new mempolicy |
@@ -771,6 +777,8 @@ int copy_page_range(struct mm_struct *dst, struct mm_struct *src, | |||
771 | struct vm_area_struct *vma); | 777 | struct vm_area_struct *vma); |
772 | void unmap_mapping_range(struct address_space *mapping, | 778 | void unmap_mapping_range(struct address_space *mapping, |
773 | loff_t const holebegin, loff_t const holelen, int even_cows); | 779 | loff_t const holebegin, loff_t const holelen, int even_cows); |
780 | int generic_access_phys(struct vm_area_struct *vma, unsigned long addr, | ||
781 | void *buf, int len, int write); | ||
774 | 782 | ||
775 | static inline void unmap_shared_mapping_range(struct address_space *mapping, | 783 | static inline void unmap_shared_mapping_range(struct address_space *mapping, |
776 | loff_t const holebegin, loff_t const holelen) | 784 | loff_t const holebegin, loff_t const holelen) |