函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Currently we rely on the pipe array holding a power-of-2 number* of pages. Returns 0 on error.

函数原型:unsigned int round_pipe_size(unsigned long size)

返回类型:unsigned int

参数:

类型参数名称
unsigned longsize
1155  如果size大于1U左移31位则返回:0
1159  如果size小于PAGE_SIZE则返回:PAGE_SIZE
1162  返回:undup_pow_of_two - round the given value up to nearest power of two*@n: parameter* round the given value up to the nearest power of two* - the result is undefined when n == 0* - this can be used to initialise global variables from constant data(size)
调用者
名称描述
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.
do_proc_dopipe_max_size_conv