]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/compat.h
compat: factor out compat_rw_copy_check_uvector from compat_do_readv_writev
[net-next-2.6.git] / include / linux / compat.h
index 717c691ecd8e3acd03c51d9d8f42efc2ec489af9..168f7daa7bdeb8d05e30895a82460310b6924dce 100644 (file)
@@ -356,5 +356,9 @@ asmlinkage long compat_sys_newfstatat(unsigned int dfd, char __user * filename,
 asmlinkage long compat_sys_openat(unsigned int dfd, const char __user *filename,
                                  int flags, int mode);
 
+extern ssize_t compat_rw_copy_check_uvector(int type,
+               const struct compat_iovec __user *uvector, unsigned long nr_segs,
+               unsigned long fast_segs, struct iovec *fast_pointer,
+               struct iovec **ret_pointer);
 #endif /* CONFIG_COMPAT */
 #endif /* _LINUX_COMPAT_H */