History

ublk: zc register/unregister bvec

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.

Keith Busch committed 1 year ago

Commit 1f6540e1 parent 27cb27b2 files · +56 −7Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/ublk_cmd.h+4−0
@@ -94,6 +94,10 @@ · 93 unmodified lines
9494 _IOWR('u', UBLK_IO_COMMIT_AND_FETCH_REQ, struct ublksrv_io_cmd)
9595 #define UBLK_U_IO_NEED_GET_DATA \
9696 _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)
97101
98102 /* only ABORT means that no re-fetch */
99103 #define UBLK_IO_RES_OK 0

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t