X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=io_uring%2Fio_uring.h;h=c8cba78310831def86ff32e9281b1c276a60e72f;hb=refs%2Fheads%2Faccepted%2Ftizen_unified;hp=0bc145614a6e66ae2d2ec0933fa7165e11f74229;hpb=736a4aad8a9fdcf577ffa33b33df240c67557af8;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index 0bc1456..c8cba7831 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -31,6 +31,13 @@ enum { IOU_ISSUE_SKIP_COMPLETE = -EIOCBQUEUED, /* + * Requeue the task_work to restart operations on this request. The + * actual value isn't important, should just be not an otherwise + * valid error code, yet less than -MAX_ERRNO and valid internally. + */ + IOU_REQUEUE = -3072, + + /* * Intended only when both IO_URING_F_MULTISHOT is passed * to indicate to the poll runner that multishot should be * removed and the result is set on req->cqe.res. @@ -86,6 +93,9 @@ bool __io_alloc_req_refill(struct io_ring_ctx *ctx); bool io_match_task_safe(struct io_kiocb *head, struct task_struct *task, bool cancel_all); +void *io_mem_alloc(size_t size); +void io_mem_free(void *ptr); + #if defined(CONFIG_PROVE_LOCKING) static inline void io_lockdep_assert_cq_locked(struct io_ring_ctx *ctx) {