mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01:00
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 <[email protected]> Signed-off-by: David Wei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
19 lines
378 B
C
19 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
|