forked from mirrors/linux
		
	 8c9a6f549e
			
		
	
	
		8c9a6f549e
		
	
	
	
	
		
			
			We're exporting some io_uring bits to networking, e.g. for implementing a net callback for io_uring cmds, but we don't want to expose more than needed. Add a separate header for networking. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: David Wei <dw@davidwei.uk> Link: https://lore.kernel.org/r/20240409210554.1878789-1-dw@davidwei.uk Signed-off-by: Jens Axboe <axboe@kernel.dk>
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			378 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			378 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-or-later */
 | |
| #ifndef _LINUX_IO_URING_NET_H
 | |
| #define _LINUX_IO_URING_NET_H
 | |
| 
 | |
| struct io_uring_cmd;
 | |
| 
 | |
| #if defined(CONFIG_IO_URING)
 | |
| int io_uring_cmd_sock(struct io_uring_cmd *cmd, unsigned int issue_flags);
 | |
| 
 | |
| #else
 | |
| static inline int io_uring_cmd_sock(struct io_uring_cmd *cmd,
 | |
| 				    unsigned int issue_flags)
 | |
| {
 | |
| 	return -EOPNOTSUPP;
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif
 |