diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-01-07 13:06:15 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-01-07 13:06:15 -0500 |
commit | 50fd2f298bef9d1f69ac755f1fdf70cd98746be2 (patch) | |
tree | b7c3dd1d018f7f754d15dc793e4120d0f0c8f007 /include/linux/string.h | |
parent | 6c2c97a24f096e3239bc54029b808c6bcba4f358 (diff) | |
download | linux-stable-50fd2f298bef9d1f69ac755f1fdf70cd98746be2.tar.gz linux-stable-50fd2f298bef9d1f69ac755f1fdf70cd98746be2.tar.bz2 linux-stable-50fd2f298bef9d1f69ac755f1fdf70cd98746be2.zip |
new primitive: vmemdup_user()
similar to memdup_user(), but does *not* guarantee that result will
be physically contiguous; use only in cases where that's not a requirement
and free it with kvfree().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/string.h')
-rw-r--r-- | include/linux/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/string.h b/include/linux/string.h index 410ecf17de3c..12d5429de0c8 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -11,6 +11,7 @@ extern char *strndup_user(const char __user *, long); extern void *memdup_user(const void __user *, size_t); +extern void *vmemdup_user(const void __user *, size_t); extern void *memdup_user_nul(const void __user *, size_t); /* |