Searched refs:user_bufs (Results 1 – 9 of 9) sorted by relevance
458 if (ctx->user_bufs[i] != &dummy_ubuf) { in __io_sqe_buffers_update()460 ctx->user_bufs[i]); in __io_sqe_buffers_update()465 ctx->user_bufs[i] = (struct io_mapped_ubuf *)&dummy_ubuf; in __io_sqe_buffers_update()468 ctx->user_bufs[i] = imu; in __io_sqe_buffers_update()779 io_buffer_unmap(ctx, &ctx->user_bufs[i]); in __io_sqe_buffers_unregister()780 kfree(ctx->user_bufs); in __io_sqe_buffers_unregister()782 ctx->user_bufs = NULL; in __io_sqe_buffers_unregister()831 struct io_mapped_ubuf *imu = ctx->user_bufs[i]; in headpage_already_acct()1005 ctx->user_bufs = kcalloc(nr_args, sizeof(*ctx->user_bufs), GFP_KERNEL); in io_buffers_map_alloc()1006 return ctx->user_bufs ? 0 : -ENOMEM; in io_buffers_map_alloc()[all …]
105 req->imu = ctx->user_bufs[index]; in io_uring_cmd_prep()
165 struct io_mapped_ubuf *buf = ctx->user_bufs[i]; in io_uring_show_fdinfo()
94 req->imu = ctx->user_bufs[index]; in io_prep_rw()
1073 req->imu = READ_ONCE(ctx->user_bufs[idx]); in io_send_zc_prep()
769 bool too_many_pipe_buffers_soft(unsigned long user_bufs) in too_many_pipe_buffers_soft() argument773 return soft_limit && user_bufs > soft_limit; in too_many_pipe_buffers_soft()776 bool too_many_pipe_buffers_hard(unsigned long user_bufs) in too_many_pipe_buffers_hard() argument780 return hard_limit && user_bufs > hard_limit; in too_many_pipe_buffers_hard()793 unsigned long user_bufs; in alloc_pipe_info() local803 user_bufs = account_pipe_buffers(user, 0, pipe_bufs); in alloc_pipe_info()805 if (too_many_pipe_buffers_soft(user_bufs) && pipe_is_unprivileged_user()) { in alloc_pipe_info()806 user_bufs = account_pipe_buffers(user, pipe_bufs, PIPE_MIN_DEF_BUFFERS); in alloc_pipe_info()810 if (too_many_pipe_buffers_hard(user_bufs) && pipe_is_unprivileged_user()) in alloc_pipe_info()1333 unsigned long user_bufs; in pipe_set_size() local[all …]
282 bool too_many_pipe_buffers_soft(unsigned long user_bufs);283 bool too_many_pipe_buffers_hard(unsigned long user_bufs);
249 struct io_mapped_ubuf **user_bufs; member
243 unsigned long user_bufs; in watch_queue_set_size() local257 user_bufs = account_pipe_buffers(pipe->user, pipe->nr_accounted, nr_pages); in watch_queue_set_size()260 (too_many_pipe_buffers_hard(user_bufs) || in watch_queue_set_size()261 too_many_pipe_buffers_soft(user_bufs)) && in watch_queue_set_size()