net.h (4f2c0a4acffbec01079c28f839422e64ddeff004) | net.h (e1fe7ee885dc0712e982ee465d9f8b96254c30c1) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3#include <linux/net.h> 4#include <linux/uio.h> 5 6#include "alloc_cache.h" 7 | 1// SPDX-License-Identifier: GPL-2.0 2 3#include <linux/net.h> 4#include <linux/uio.h> 5 6#include "alloc_cache.h" 7 |
8#if defined(CONFIG_NET) | |
9struct io_async_msghdr { | 8struct io_async_msghdr { |
9#if defined(CONFIG_NET) |
|
10 union { 11 struct iovec fast_iov[UIO_FASTIOV]; 12 struct { 13 struct iovec fast_iov_one; 14 __kernel_size_t controllen; 15 int namelen; 16 __kernel_size_t payloadlen; 17 }; 18 struct io_cache_entry cache; 19 }; 20 /* points to an allocated iov, if NULL we use fast_iov instead */ 21 struct iovec *free_iov; 22 struct sockaddr __user *uaddr; 23 struct msghdr msg; 24 struct sockaddr_storage addr; | 10 union { 11 struct iovec fast_iov[UIO_FASTIOV]; 12 struct { 13 struct iovec fast_iov_one; 14 __kernel_size_t controllen; 15 int namelen; 16 __kernel_size_t payloadlen; 17 }; 18 struct io_cache_entry cache; 19 }; 20 /* points to an allocated iov, if NULL we use fast_iov instead */ 21 struct iovec *free_iov; 22 struct sockaddr __user *uaddr; 23 struct msghdr msg; 24 struct sockaddr_storage addr; |
25#endif |
|
25}; 26 | 26}; 27 |
28#if defined(CONFIG_NET) 29 |
|
27struct io_async_connect { 28 struct sockaddr_storage address; 29}; 30 31int io_shutdown_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe); 32int io_shutdown(struct io_kiocb *req, unsigned int issue_flags); 33 34int io_sendmsg_prep_async(struct io_kiocb *req); --- 35 unchanged lines hidden --- | 30struct io_async_connect { 31 struct sockaddr_storage address; 32}; 33 34int io_shutdown_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe); 35int io_shutdown(struct io_kiocb *req, unsigned int issue_flags); 36 37int io_sendmsg_prep_async(struct io_kiocb *req); --- 35 unchanged lines hidden --- |