Lines Matching refs:kiocb
200 struct kiocb rw;
561 void kiocb_set_cancel_fn(struct kiocb *iocb, kiocb_cancel_fn *cancel) in kiocb_set_cancel_fn()
1420 static void aio_complete_rw(struct kiocb *kiocb, long res) in aio_complete_rw() argument
1422 struct aio_kiocb *iocb = container_of(kiocb, struct aio_kiocb, rw); in aio_complete_rw()
1427 if (kiocb->ki_flags & IOCB_WRITE) { in aio_complete_rw()
1428 struct inode *inode = file_inode(kiocb->ki_filp); in aio_complete_rw()
1436 file_end_write(kiocb->ki_filp); in aio_complete_rw()
1444 static int aio_prep_rw(struct kiocb *req, const struct iocb *iocb) in aio_prep_rw()
1495 static inline void aio_rw_done(struct kiocb *req, ssize_t ret) in aio_rw_done()
1515 static int aio_read(struct kiocb *req, const struct iocb *iocb, in aio_read()
1543 static int aio_write(struct kiocb *req, const struct iocb *iocb, in aio_write()
1714 static int aio_poll_cancel(struct kiocb *iocb) in aio_poll_cancel()
2124 struct aio_kiocb *kiocb; in SYSCALL_DEFINE3() local
2140 list_for_each_entry(kiocb, &ctx->active_reqs, ki_list) { in SYSCALL_DEFINE3()
2141 if (kiocb->ki_res.obj == obj) { in SYSCALL_DEFINE3()
2142 ret = kiocb->ki_cancel(&kiocb->rw); in SYSCALL_DEFINE3()
2143 list_del_init(&kiocb->ki_list); in SYSCALL_DEFINE3()