Lines Matching refs:kioctx

83 	struct kioctx __rcu	*table[] __counted_by(nr);
95 struct kioctx { struct
205 struct kioctx *ki_ctx;
261 static struct file *aio_private_file(struct kioctx *ctx, loff_t nr_pages) in aio_private_file()
303 kioctx_cachep = KMEM_CACHE(kioctx,SLAB_HWCACHE_ALIGN|SLAB_PANIC); in aio_setup()
309 static void put_aio_ring_file(struct kioctx *ctx) in put_aio_ring_file()
328 static void aio_free_ring(struct kioctx *ctx) in aio_free_ring()
368 struct kioctx *ctx; in aio_ring_mremap()
410 struct kioctx *ctx; in aio_migrate_folio()
491 static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events) in aio_setup_ring()
594 struct kioctx *ctx = req->ki_ctx; in kiocb_set_cancel_fn()
614 struct kioctx *ctx = container_of(to_rcu_work(work), struct kioctx, in free_ioctx()
627 struct kioctx *ctx = container_of(ref, struct kioctx, reqs); in free_ioctx_reqs()
645 struct kioctx *ctx = container_of(ref, struct kioctx, users); in free_ioctx_users()
663 static int ioctx_add_table(struct kioctx *ctx, struct mm_struct *mm) in ioctx_add_table()
705 old->nr * sizeof(struct kioctx *)); in ioctx_add_table()
729 static struct kioctx *ioctx_alloc(unsigned nr_events) in ioctx_alloc()
732 struct kioctx *ctx; in ioctx_alloc()
844 static int kill_ioctx(struct mm_struct *mm, struct kioctx *ctx, in kill_ioctx()
902 struct kioctx *ctx = in exit_aio()
930 static void put_reqs_available(struct kioctx *ctx, unsigned nr) in put_reqs_available()
947 static bool __get_reqs_available(struct kioctx *ctx) in __get_reqs_available()
981 static void refill_reqs_available(struct kioctx *ctx, unsigned head, in refill_reqs_available()
1010 static void user_refill_reqs_available(struct kioctx *ctx) in user_refill_reqs_available()
1035 static bool get_reqs_available(struct kioctx *ctx) in get_reqs_available()
1050 static inline struct aio_kiocb *aio_get_req(struct kioctx *ctx) in aio_get_req()
1071 static struct kioctx *lookup_ioctx(unsigned long ctx_id) in lookup_ioctx()
1075 struct kioctx *ctx, *ret = NULL; in lookup_ioctx()
1114 struct kioctx *ctx = iocb->ki_ctx; in aio_complete()
1195 static long aio_read_events_ring(struct kioctx *ctx, in aio_read_events_ring()
1272 static bool aio_read_events(struct kioctx *ctx, long min_nr, long nr, in aio_read_events()
1289 static long read_events(struct kioctx *ctx, long min_nr, long nr, in read_events()
1333 struct kioctx *ioctx = NULL; in SYSCALL_DEFINE2()
1364 struct kioctx *ioctx = NULL; in COMPAT_SYSCALL_DEFINE2()
1402 struct kioctx *ioctx = lookup_ioctx(ctx); in SYSCALL_DEFINE1()
1432 struct kioctx *ctx = iocb->ki_ctx; in aio_remove_iocb()
1677 struct kioctx *ctx = iocb->ki_ctx; in aio_poll_complete_work()
1762 struct kioctx *ctx = iocb->ki_ctx; in aio_poll_wake()
1844 struct kioctx *ctx = aiocb->ki_ctx; in aio_poll()
1917 static int __io_submit_one(struct kioctx *ctx, const struct iocb *iocb, in __io_submit_one()
1971 static int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb, in io_submit_one()
2033 struct kioctx *ctx; in SYSCALL_DEFINE3()
2075 struct kioctx *ctx; in COMPAT_SYSCALL_DEFINE3()
2127 struct kioctx *ctx; in SYSCALL_DEFINE3()
2174 struct kioctx *ioctx = lookup_ioctx(ctx_id); in do_io_getevents()