Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
0002 /*
0003  *  Berkeley style UIO structures   -   Alan Cox 1994.
0004  *
0005  *      This program is free software; you can redistribute it and/or
0006  *      modify it under the terms of the GNU General Public License
0007  *      as published by the Free Software Foundation; either version
0008  *      2 of the License, or (at your option) any later version.
0009  */
0010 #ifndef _UAPI__LINUX_UIO_H
0011 #define _UAPI__LINUX_UIO_H
0012 
0013 #include <linux/compiler.h>
0014 #include <linux/types.h>
0015 
0016 
0017 struct iovec
0018 {
0019     void __user *iov_base;  /* BSD uses caddr_t (1003.1g requires void *) */
0020     __kernel_size_t iov_len; /* Must be size_t (1003.1g) */
0021 };
0022 
0023 /*
0024  *  UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1)
0025  */
0026  
0027 #define UIO_FASTIOV 8
0028 #define UIO_MAXIOV  1024
0029 
0030 
0031 #endif /* _UAPI__LINUX_UIO_H */