summaryrefslogtreecommitdiff
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorGreg Banks <gnb@melbourne.sgi.com>2005-01-04 05:41:31 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-04 05:41:31 -0800
commit9a3ed4ef5e77e28427c33745d6317348123714c0 (patch)
treee7592ad02be1112e078038b78167a3c61da5d13e /include/linux/mm.h
parent066752a33fe75667a5e0e65b0e1fac8653ba4535 (diff)
[PATCH] oprofile: add check_user_page_readable()
Add check_user_page_readable() for kernel modules which need to follow user space addresses but can't use get_user(). Signed-off-by: John Levon <levon@movementarian.org> Signed-off-by: Greg Banks <gnb@melbourne.sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index edc8c7d56185..93302390a475 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -802,6 +802,7 @@ extern struct page * vmalloc_to_page(void *addr);
extern unsigned long vmalloc_to_pfn(void *addr);
extern struct page * follow_page(struct mm_struct *mm, unsigned long address,
int write);
+extern int check_user_page_readable(struct mm_struct *mm, unsigned long address);
int remap_pfn_range(struct vm_area_struct *, unsigned long,
unsigned long, unsigned long, pgprot_t);