Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at b935117fe6d1af576e39b1f18c9e875f44bd146f 28 lines 503 B view raw
1// SPDX-License-Identifier: GPL-2.0 2#ifndef IOU_BPF_OPS_H 3#define IOU_BPF_OPS_H 4 5#include <linux/io_uring_types.h> 6 7enum { 8 IOU_REGION_MEM, 9 IOU_REGION_CQ, 10 IOU_REGION_SQ, 11}; 12 13struct io_uring_bpf_ops { 14 int (*loop_step)(struct io_ring_ctx *ctx, struct iou_loop_params *lp); 15 16 __u32 ring_fd; 17 void *priv; 18}; 19 20#ifdef CONFIG_IO_URING_BPF_OPS 21void io_unregister_bpf_ops(struct io_ring_ctx *ctx); 22#else 23static inline void io_unregister_bpf_ops(struct io_ring_ctx *ctx) 24{ 25} 26#endif 27 28#endif /* IOU_BPF_OPS_H */