[LTP] [PATCH 2/3] io_uring: Test READV and WRITEV operations
Sachin Sant
sachinp@linux.ibm.com
Tue Mar 24 06:15:56 CET 2026
On 23/03/26 9:52 pm, Cyril Hrubis wrote:
> Hi!
>> +#define TEST_FILE "io_uring_test_file"
>> +#define QUEUE_DEPTH 2
>> +#define NUM_VECS 4
>> +#define VEC_SIZE 1024
>> +
>> +static char write_bufs[NUM_VECS][VEC_SIZE];
>> +static char read_bufs[NUM_VECS][VEC_SIZE];
>> +static struct iovec write_iovs[NUM_VECS];
>> +static struct iovec read_iovs[NUM_VECS];
> The guarded buffers can allocate iovec for you as well. Have a look at
> readv01.c test how to do that in the tst_test structure.
Thanks Cyril for the review comments. I have addressed them in v2.
--
Thanks
- Sachin
More information about the ltp
mailing list