We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5234f2c commit 3a91f28Copy full SHA for 3a91f28
include/linux/io_uring/cmd.h
@@ -140,6 +140,15 @@ static inline struct io_uring_cmd_data *io_uring_cmd_get_async_data(struct io_ur
140
return cmd_to_io_kiocb(cmd)->async_data;
141
}
142
143
+/*
144
+ * Return uring_cmd's context reference as its context handle for driver to
145
+ * track per-context resource, such as registered kernel IO buffer
146
+ */
147
+static inline void *io_uring_cmd_ctx_handle(struct io_uring_cmd *cmd)
148
+{
149
+ return cmd_to_io_kiocb(cmd)->ctx;
150
+}
151
+
152
int io_buffer_register_bvec(struct io_uring_cmd *cmd, struct request *rq,
153
void (*release)(void *), unsigned int index,
154
unsigned int issue_flags);
0 commit comments