aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 820b4c4810f0..468f5076754c 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3711,6 +3711,22 @@ static int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
3711 return buf - old_buf; 3711 return buf - old_buf;
3712} 3712}
3713 3713
3714/**
3715 * @access_remote_vm - access another process' address space
3716 * @mm: the mm_struct of the target address space
3717 * @addr: start address to access
3718 * @buf: source or destination buffer
3719 * @len: number of bytes to transfer
3720 * @write: whether the access is a write
3721 *
3722 * The caller must hold a reference on @mm.
3723 */
3724int access_remote_vm(struct mm_struct *mm, unsigned long addr,
3725 void *buf, int len, int write)
3726{
3727 return __access_remote_vm(NULL, mm, addr, buf, len, write);
3728}
3729
3714/* 3730/*
3715 * Access another process' address space. 3731 * Access another process' address space.
3716 * Source/target buffer must be kernel space, 3732 * Source/target buffer must be kernel space,