[LTP] [PATCH v2 1/3] io_uring: Test IORING READ and WRITE operations
Martin Doucha
mdoucha@suse.cz
Thu Apr 16 10:55:50 CEST 2026
On 3/24/26 06:22, Sachin Sant wrote:
> +/*
> + * Map io_uring operation code to human-readable name
> + */
> +static inline const char *ioring_op_name(int op)
> +{
> + switch (op) {
> + case IORING_OP_READV:
> + return "IORING_OP_READV";
> + case IORING_OP_WRITEV:
> + return "IORING_OP_WRITEV";
> + case IORING_OP_READ:
> + return "IORING_OP_READ";
> + case IORING_OP_WRITE:
> + return "IORING_OP_WRITE";
Hi,
IORING_OP_READ and IORING_OP_WRITE have been added in kernel v5.6. Some
older distros currently fail to build LTP due to their missing
declarations so you'll need to add those constants to lapi headers.
--
Martin Doucha mdoucha@suse.cz
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
More information about the ltp
mailing list