函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\pipe.c Create Date:2022-07-29 10:34:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:account_pipe_buffers

函数原型:static unsigned long account_pipe_buffers(struct user_struct *user, unsigned long old, unsigned long new)

返回类型:unsigned long

参数:

类型参数名称
struct user_struct *user
unsigned longold
unsigned longnew
741  返回:atomic_long_add_return(new - old, & how many pages are allocated in pipe buffers )
调用者
名称描述
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.