Provide new operations for the user to request mapping an active request to an io uring instance's buf_table. The user has to provide the index it wants to install the buffer. A reference count is taken on the request to ensure it can't be completed while it is active in a ring's buf_table.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -94,6 +94,10 @@ · 93 unmodified lines | |||
| 94 | _IOWR('u', UBLK_IO_COMMIT_AND_FETCH_REQ, struct ublksrv_io_cmd) | 94 | _IOWR('u', UBLK_IO_COMMIT_AND_FETCH_REQ, struct ublksrv_io_cmd) |
| 95 | #define UBLK_U_IO_NEED_GET_DATA \ | 95 | #define UBLK_U_IO_NEED_GET_DATA \ |
| 96 | _IOWR('u', UBLK_IO_NEED_GET_DATA, struct ublksrv_io_cmd) | 96 | _IOWR('u', UBLK_IO_NEED_GET_DATA, struct ublksrv_io_cmd) |
| 97 | #define UBLK_U_IO_REGISTER_IO_BUF \ | ||
| 98 | _IOWR('u', 0x23, struct ublksrv_io_cmd) | ||
| 99 | #define UBLK_U_IO_UNREGISTER_IO_BUF \ | ||
| 100 | _IOWR('u', 0x24, struct ublksrv_io_cmd) | ||
| 97 | 101 | ||
| 98 | /* only ABORT means that no re-fetch */ | 102 | /* only ABORT means that no re-fetch */ |
| 99 | #define UBLK_IO_RES_OK 0 | 103 | #define UBLK_IO_RES_OK 0 |