函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kfifo.c Create Date:2022-07-27 07:21:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__kfifo_init

函数原型:int __kfifo_init(struct __kfifo *fifo, void *buffer, unsigned int size, size_t esize)

返回类型:int

参数:

类型参数名称
struct __kfifo *fifo
void *buffer
unsigned intsize
size_tesize
69  size除等于esize
71  如果非s_power_of_2() - check if a value is a power of two*@n: the value to check* Determine whether some value is a power of two, where zero is* *not* considered a power of two.* Return: true if @n is a power of 2, otherwise false.size等于unddown_pow_of_two - round the given value down to nearest power of two*@n: parameter* round the given value down 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)
74  in等于0
75  out等于0
76  esize等于esize
77  data等于buffer
79  如果size小于2则
80  mask等于0
81  返回:负EINVAL
83  mask等于size减1
85  返回:0