We have IORING_OP_PROVIDE_BUFFERS, but the only way to remove buffers is to trigger IO on them. The usual case of shrinking a buffer pool would be to just not replenish the buffers when IO completes, and instead just free it. But it may be nice to have a way to manually remove a number of buffers from a given group, and IORING_OP_REMOVE_BUFFERS provides that functionality.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -128,6 +128,7 @@ enum { · 127 unmodified lines | |||
| 128 | IORING_OP_EPOLL_CTL, | 128 | IORING_OP_EPOLL_CTL, |
| 129 | IORING_OP_SPLICE, | 129 | IORING_OP_SPLICE, |
| 130 | IORING_OP_PROVIDE_BUFFERS, | 130 | IORING_OP_PROVIDE_BUFFERS, |
| 131 | IORING_OP_REMOVE_BUFFERS, | ||
| 131 | 132 | ||
| 132 | /* this goes last, obviously */ | 133 | /* this goes last, obviously */ |
| 133 | IORING_OP_LAST, | 134 | IORING_OP_LAST, |