Home
last modified time | relevance | path

Searched refs:user_bufs (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/fs/
Dpipe.c762 bool too_many_pipe_buffers_soft(unsigned long user_bufs) in too_many_pipe_buffers_soft() argument
766 return soft_limit && user_bufs > soft_limit; in too_many_pipe_buffers_soft()
769 bool too_many_pipe_buffers_hard(unsigned long user_bufs) in too_many_pipe_buffers_hard() argument
773 return hard_limit && user_bufs > hard_limit; in too_many_pipe_buffers_hard()
786 unsigned long user_bufs; in alloc_pipe_info() local
796 user_bufs = account_pipe_buffers(user, 0, pipe_bufs); in alloc_pipe_info()
798 if (too_many_pipe_buffers_soft(user_bufs) && pipe_is_unprivileged_user()) { in alloc_pipe_info()
799 user_bufs = account_pipe_buffers(user, pipe_bufs, PIPE_MIN_DEF_BUFFERS); in alloc_pipe_info()
803 if (too_many_pipe_buffers_hard(user_bufs) && pipe_is_unprivileged_user()) in alloc_pipe_info()
1326 unsigned long user_bufs; in pipe_set_size() local
[all …]
/linux-6.6.21/io_uring/
Drsrc.c468 if (ctx->user_bufs[i] != &dummy_ubuf) { in __io_sqe_buffers_update()
470 ctx->user_bufs[i]); in __io_sqe_buffers_update()
475 ctx->user_bufs[i] = (struct io_mapped_ubuf *)&dummy_ubuf; in __io_sqe_buffers_update()
478 ctx->user_bufs[i] = imu; in __io_sqe_buffers_update()
939 io_buffer_unmap(ctx, &ctx->user_bufs[i]); in __io_sqe_buffers_unregister()
940 kfree(ctx->user_bufs); in __io_sqe_buffers_unregister()
942 ctx->user_bufs = NULL; in __io_sqe_buffers_unregister()
991 struct io_mapped_ubuf *imu = ctx->user_bufs[i]; in headpage_already_acct()
1165 ctx->user_bufs = kcalloc(nr_args, sizeof(*ctx->user_bufs), GFP_KERNEL); in io_buffers_map_alloc()
1166 return ctx->user_bufs ? 0 : -ENOMEM; in io_buffers_map_alloc()
[all …]
During_cmd.c105 req->imu = ctx->user_bufs[index]; in io_uring_cmd_prep()
Dfdinfo.c165 struct io_mapped_ubuf *buf = ctx->user_bufs[i]; in io_uring_show_fdinfo()
Drw.c94 req->imu = ctx->user_bufs[index]; in io_prep_rw()
Dnet.c1036 req->imu = READ_ONCE(ctx->user_bufs[idx]); in io_send_zc_prep()
/linux-6.6.21/include/linux/
Dpipe_fs_i.h282 bool too_many_pipe_buffers_soft(unsigned long user_bufs);
283 bool too_many_pipe_buffers_hard(unsigned long user_bufs);
Dio_uring_types.h249 struct io_mapped_ubuf **user_bufs; member
/linux-6.6.21/kernel/
Dwatch_queue.c243 unsigned long user_bufs; in watch_queue_set_size() local
257 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()