Lines Matching defs:notif
9 #include "notif.h"
14 static void io_notif_tw_complete(struct io_kiocb *notif, io_tw_token_t tw)
16 struct io_notif_data *nd = io_notif_to_data(notif);
19 notif = cmd_to_io_kiocb(nd);
24 notif->cqe.res |= IORING_NOTIF_USAGE_ZC_COPIED;
26 if (nd->account_pages && notif->ctx->user) {
27 __io_unaccount_mem(notif->ctx->user, nd->account_pages);
32 io_req_task_complete(notif, tw);
40 struct io_kiocb *notif = cmd_to_io_kiocb(nd);
59 notif->io_task_work.func = io_notif_tw_complete;
60 __io_req_task_work_add(notif, tw_flags);
66 struct io_kiocb *prev_notif, *notif;
70 notif = cmd_to_io_kiocb(nd);
77 /* handle it separately as we can't link a notif to itself */
91 if (unlikely(notif->ctx != prev_notif->ctx ||
92 notif->tctx != prev_notif->tctx))
110 struct io_kiocb *notif;
113 if (unlikely(!io_alloc_req(ctx, ¬if)))
115 notif->ctx = ctx;
116 notif->opcode = IORING_OP_NOP;
117 notif->flags = 0;
118 notif->file = NULL;
119 notif->tctx = current->io_uring;
121 notif->file_node = NULL;
122 notif->buf_node = NULL;
124 nd = io_notif_to_data(notif);
133 return notif;