summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Wilson2011-03-13 20:49:20 +0100
committerAl Viro2011-03-23 21:36:57 +0100
commit5ddd36b9c59887c6416e21daf984fbdd9b1818df (patch)
tree1cc7ce9a671f4c49dc594e1f5d1fc8b596e77b5f /include
parentmm: factor out main logic of access_process_vm (diff)
downloadkernel-qcow2-linux-5ddd36b9c59887c6416e21daf984fbdd9b1818df.tar.gz
kernel-qcow2-linux-5ddd36b9c59887c6416e21daf984fbdd9b1818df.tar.xz
kernel-qcow2-linux-5ddd36b9c59887c6416e21daf984fbdd9b1818df.zip
mm: implement access_remote_vm
Provide an alternative to access_process_vm that allows the caller to obtain a reference to the supplied mm_struct. Signed-off-by: Stephen Wilson <wilsons@start.ca> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 9d6efefdde50..60011d26bffc 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -971,6 +971,8 @@ static inline int handle_mm_fault(struct mm_struct *mm,
extern int make_pages_present(unsigned long addr, unsigned long end);
extern int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write);
+extern int access_remote_vm(struct mm_struct *mm, unsigned long addr,
+ void *buf, int len, int write);
int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
unsigned long start, int len, unsigned int foll_flags,