diff options
author | Nick Piggin <npiggin@suse.de> | 2007-02-12 03:51:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:27 -0500 |
commit | e0dc0d8f4a327d033bfb63d43f113d5f31d11b3c (patch) | |
tree | 7af435f3caacd18eef6e30577e61d62e0afbe4d2 /include | |
parent | 2ca48ed5cc5935cbd2a6f5d14fecd4ddbbdb4315 (diff) |
[PATCH] add vm_insert_pfn()
Add a vm_insert_pfn helper, so that ->fault handlers can have nopfn
functionality by installing their own pte and returning NULL.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 77a76101dcd9..903f3b71f4a7 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1124,6 +1124,8 @@ unsigned long vmalloc_to_pfn(void *addr); | |||
1124 | int remap_pfn_range(struct vm_area_struct *, unsigned long addr, | 1124 | int remap_pfn_range(struct vm_area_struct *, unsigned long addr, |
1125 | unsigned long pfn, unsigned long size, pgprot_t); | 1125 | unsigned long pfn, unsigned long size, pgprot_t); |
1126 | int vm_insert_page(struct vm_area_struct *, unsigned long addr, struct page *); | 1126 | int vm_insert_page(struct vm_area_struct *, unsigned long addr, struct page *); |
1127 | int vm_insert_pfn(struct vm_area_struct *vma, unsigned long addr, | ||
1128 | unsigned long pfn); | ||
1127 | 1129 | ||
1128 | struct page *follow_page(struct vm_area_struct *, unsigned long address, | 1130 | struct page *follow_page(struct vm_area_struct *, unsigned long address, |
1129 | unsigned int foll_flags); | 1131 | unsigned int foll_flags); |