summaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-01-07 21:06:15 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2018-01-07 21:06:15 +0300
commit50fd2f298bef9d1f69ac755f1fdf70cd98746be2 (patch)
treeb7c3dd1d018f7f754d15dc793e4120d0f0c8f007 /include/linux/string.h
parent6c2c97a24f096e3239bc54029b808c6bcba4f358 (diff)
downloadlinux-50fd2f298bef9d1f69ac755f1fdf70cd98746be2.tar.xz
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.h1
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);
/*