Searched refs:nr_events (Results 1 – 2 of 2) sorted by relevance
/fs/ |
D | aio.c | 122 unsigned nr_events; member 460 static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events) in aio_setup_ring() argument 470 nr_events += 2; /* 1 is required, 2 for good luck */ in aio_setup_ring() 473 size += sizeof(struct io_event) * nr_events; in aio_setup_ring() 486 nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) in aio_setup_ring() 541 ctx->nr_events = nr_events; /* trusted copy */ in aio_setup_ring() 544 ring->nr = nr_events; /* user copy */ in aio_setup_ring() 701 static struct kioctx *ioctx_alloc(unsigned nr_events) in ioctx_alloc() argument 711 unsigned int max_reqs = nr_events; in ioctx_alloc() 722 nr_events = max(nr_events, num_possible_cpus() * 4); in ioctx_alloc() [all …]
|
D | io_uring.c | 759 static void io_iopoll_complete(struct io_ring_ctx *ctx, unsigned int *nr_events, in io_iopoll_complete() argument 772 (*nr_events)++; in io_iopoll_complete() 795 static int io_do_iopoll(struct io_ring_ctx *ctx, unsigned int *nr_events, in io_do_iopoll() argument 807 spin = !ctx->poll_multi_file && *nr_events < min; in io_do_iopoll() 835 io_iopoll_complete(ctx, nr_events, &done); in io_do_iopoll() 845 static int io_iopoll_getevents(struct io_ring_ctx *ctx, unsigned int *nr_events, in io_iopoll_getevents() argument 851 ret = io_do_iopoll(ctx, nr_events, min); in io_iopoll_getevents() 854 if (!min || *nr_events >= min) in io_iopoll_getevents() 872 unsigned int nr_events = 0; in io_iopoll_reap_events() local 874 io_iopoll_getevents(ctx, &nr_events, 1); in io_iopoll_reap_events() [all …]
|