liburing: sync pi attributes with kernel uapi
PATCH 1/1 liburing: sync pi attributes with kernel uapi
From: Keith Busch <[email protected]>
These were introduced in kernel release 6.13.
Signed-off-by Keith Busch <[email protected]>
--- src/include/liburing/io_uring.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
src/include/liburing/io_uring.h +16 -0
@@ -100,6 +100,10 @@ struct io_uring_sqe {__u64 addr3;__u64 __pad2[1 ]; }; +struct { +__u64 attr_ptr;/* pointer to attribute information */ +__u64 attr_type_mask;/* bit mask of attributes */ + };__u64 optval;/* * If the ring is initialized with IORING_SETUP_SQE128, then
@@ -109,6 +113,18 @@ struct io_uring_sqe { }; }; +/* sqe->attr_type_mask flags */ +#define IORING_RW_ATTR_FLAG_PI (1U << 0) +/* PI attribute information */ +struct io_uring_attr_pi { +__u16 flags; +__u16 app_tag; +__u32 len; +__u64 addr; +__u64 seed; +__u64 rsvd; +}; +/* * If sqe->file_index is set to this for opcodes that instantiate a new * direct descriptor (like openat/openat2/accept), then io_uring will allocate
Signature · 1 line
2.47.3
Quoted 3 lines · Keith Busch
These were introduced in kernel release 6.13.
Applied, thanks!
[1/1] liburing: sync pi attributes with kernel uapi
commit: 679b42227999633f67cf0e6183f939495025e95c
Best regards,
Signature · 1 line
Jens Axboe