Lines Matching refs:prsrc
245 typedef void (rsrc_put_fn)(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc);
8264 static void io_rsrc_file_put(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc)
8266 struct file *file = prsrc->file;
8331 struct io_rsrc_put *prsrc, *tmp;
8333 list_for_each_entry_safe(prsrc, tmp, &ref_node->rsrc_list, list) {
8334 list_del(&prsrc->list);
8336 if (prsrc->tag) {
8341 io_fill_cqe_aux(ctx, prsrc->tag, 0, 0);
8348 rsrc_data->do_put(ctx, prsrc);
8349 kfree(prsrc);
8461 struct io_rsrc_put *prsrc;
8463 prsrc = kzalloc(sizeof(*prsrc), GFP_KERNEL);
8464 if (!prsrc)
8467 prsrc->tag = *tag_slot;
8469 prsrc->rsrc = rsrc;
8470 list_add(&prsrc->list, &node->rsrc_list);
8914 static void io_rsrc_buf_put(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc)
8916 io_buffer_unmap(ctx, &prsrc->buf);
8917 prsrc->buf = NULL;