Lines Matching refs:kiocb
200 struct kiocb rw;
591 void kiocb_set_cancel_fn(struct kiocb *iocb, kiocb_cancel_fn *cancel) in kiocb_set_cancel_fn()
1447 static void aio_complete_rw(struct kiocb *kiocb, long res) in aio_complete_rw() argument
1449 struct aio_kiocb *iocb = container_of(kiocb, struct aio_kiocb, rw); in aio_complete_rw()
1454 if (kiocb->ki_flags & IOCB_WRITE) { in aio_complete_rw()
1455 struct inode *inode = file_inode(kiocb->ki_filp); in aio_complete_rw()
1458 kiocb_end_write(kiocb); in aio_complete_rw()
1466 static int aio_prep_rw(struct kiocb *req, const struct iocb *iocb) in aio_prep_rw()
1516 static inline void aio_rw_done(struct kiocb *req, ssize_t ret) in aio_rw_done()
1536 static int aio_read(struct kiocb *req, const struct iocb *iocb, in aio_read()
1563 static int aio_write(struct kiocb *req, const struct iocb *iocb, in aio_write()
1725 static int aio_poll_cancel(struct kiocb *iocb) in aio_poll_cancel()
2135 struct aio_kiocb *kiocb; in SYSCALL_DEFINE3() local
2151 list_for_each_entry(kiocb, &ctx->active_reqs, ki_list) { in SYSCALL_DEFINE3()
2152 if (kiocb->ki_res.obj == obj) { in SYSCALL_DEFINE3()
2153 ret = kiocb->ki_cancel(&kiocb->rw); in SYSCALL_DEFINE3()
2154 list_del_init(&kiocb->ki_list); in SYSCALL_DEFINE3()