Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:unsigned int round_pipe_size(unsigned long size)

Type:unsigned int

Parameter:

TypeParameterName
unsigned longsize
1155  If size > 1U << 31 Then Return 0
1159  If size < PAGE_SIZE Then Return PAGE_SIZE
1162  Return 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)
Caller
NameDescribe
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.