[LTP] [PATCH v2 1/3] io_uring: Test IORING READ and WRITE operations

Sachin Sant sachinp@linux.ibm.com
Thu Apr 16 11:36:17 CEST 2026



On 16/04/26 2:25 pm, Martin Doucha wrote:
> 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.
>

Thank you for the report. I will send a fix to address this.

-- 
Thanks
- Sachin




More information about the ltp mailing list