Home
last modified time | relevance | path

Searched refs:pipe_bufs (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/fs/
Dpipe.c759 return atomic_long_add_return(new - old, &user->pipe_bufs); in account_pipe_buffers()
784 unsigned long pipe_bufs = PIPE_DEF_BUFFERS; in alloc_pipe_info() local
793 if (pipe_bufs * PAGE_SIZE > max_size && !capable(CAP_SYS_RESOURCE)) in alloc_pipe_info()
794 pipe_bufs = max_size >> PAGE_SHIFT; in alloc_pipe_info()
796 user_bufs = account_pipe_buffers(user, 0, pipe_bufs); in alloc_pipe_info()
799 user_bufs = account_pipe_buffers(user, pipe_bufs, PIPE_MIN_DEF_BUFFERS); in alloc_pipe_info()
800 pipe_bufs = PIPE_MIN_DEF_BUFFERS; in alloc_pipe_info()
806 pipe->bufs = kcalloc(pipe_bufs, sizeof(struct pipe_buffer), in alloc_pipe_info()
813 pipe->max_usage = pipe_bufs; in alloc_pipe_info()
814 pipe->ring_size = pipe_bufs; in alloc_pipe_info()
[all …]
/kernel/linux/linux-5.10/include/linux/sched/
Duser.h29 atomic_long_t pipe_bufs; /* how many pages are allocated in pipe buffers */ member