Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\pipe.c Create Date:2022-07-28 20:04:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:account_pipe_buffers

Proto:static unsigned long account_pipe_buffers(struct user_struct *user, unsigned long old, unsigned long new)

Type:unsigned long

Parameter:

TypeParameterName
struct user_struct *user
unsigned longold
unsigned longnew
741  Return atomic_long_add_return(new - old, & how many pages are allocated in pipe buffers )
Caller
NameDescribe
alloc_pipe_info
free_pipe_info
pipe_set_sizeAllocate a new array of pipe buffers and copy the info over. Returns the* pipe size if successful, or return -ERROR on error.