[go: up one dir, main page]

|
|
Log in / Subscribe / Register

Automatic buffer selection for io_uring

Automatic buffer selection for io_uring

Posted Mar 23, 2020 19:50 UTC (Mon) by lorddoskias (subscriber, #95746)
Parent article: Automatic buffer selection for io_uring

I'n confused by the description regarding buffer size. Initially it's claimed that all buffers must have identical size, presumably because in the struct describing the request there is a single size_t:

> Each operation includes the base address of the buffer(s), a count of buffers, the size (the same for all buffers in this operation)

The very next sentence mentions: There is no requirement that all buffers in a given group be the same size . I assume one IORING_OP_PROVIDE_BUFFERS call provides 1 group of N buffers. So which one is true?


to post comments

Buffer sizes

Posted Mar 23, 2020 20:10 UTC (Mon) by corbet (editor, #1) [Link]

Both are true. You can make multiple IORING_OP_PROVIDE_BUFFERS calls to add buffers to the same group; indeed, that will be the normal mode of operation assuming that buffers are used more than once. Different calls can provide different sizes.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds