Lines Matching refs:kiocb
200 struct kiocb rw;
565 void kiocb_set_cancel_fn(struct kiocb *iocb, kiocb_cancel_fn *cancel) in kiocb_set_cancel_fn()
1432 static void aio_complete_rw(struct kiocb *kiocb, long res, long res2) in aio_complete_rw() argument
1434 struct aio_kiocb *iocb = container_of(kiocb, struct aio_kiocb, rw); in aio_complete_rw()
1439 if (kiocb->ki_flags & IOCB_WRITE) { in aio_complete_rw()
1440 struct inode *inode = file_inode(kiocb->ki_filp); in aio_complete_rw()
1448 file_end_write(kiocb->ki_filp); in aio_complete_rw()
1456 static int aio_prep_rw(struct kiocb *req, const struct iocb *iocb) in aio_prep_rw()
1507 static inline void aio_rw_done(struct kiocb *req, ssize_t ret) in aio_rw_done()
1527 static int aio_read(struct kiocb *req, const struct iocb *iocb, in aio_read()
1555 static int aio_write(struct kiocb *req, const struct iocb *iocb, in aio_write()
1726 static int aio_poll_cancel(struct kiocb *iocb) in aio_poll_cancel()
2136 struct aio_kiocb *kiocb; in SYSCALL_DEFINE3() local
2152 list_for_each_entry(kiocb, &ctx->active_reqs, ki_list) { in SYSCALL_DEFINE3()
2153 if (kiocb->ki_res.obj == obj) { in SYSCALL_DEFINE3()
2154 ret = kiocb->ki_cancel(&kiocb->rw); in SYSCALL_DEFINE3()
2155 list_del_init(&kiocb->ki_list); in SYSCALL_DEFINE3()