Commit d27f14c
committed
Add io_uring_register_sync_msg() helper
This helpers helps issue a sync MSG_RING request, as done via
IORING_REGISTER_SEND_MSG_RING. It requires the SQE to be cleared
and initialized with io_uring_prep_msg_ring(), just like a normal
async MSG_RING request would be. It does not require a source ring,
as no source ring is used - the result of the operation (what would've
been cqe->res if the async approach would've been used) is returned
directly from io_uring_register_sync_msg().
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 3ca5acc commit d27f14c
4 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
245 | 246 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
371 | 376 | | |
372 | 377 | | |
373 | 378 | | |
| |||
0 commit comments