函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:For a description of the algorithm please have a look at* include/linux/reciprocal_div.h

函数原型:struct reciprocal_value reciprocal_value(u32 d)

返回类型:struct reciprocal_value

参数:

类型参数名称
u32d
19  l等于ls - find last set bit in word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffs, but returns the position of the most significant set bit.* fls(value) returns 0 if value is 0 or the position of the last
20  m等于1ULL左移32位的值乘1ULL左移l位的值减d的差
21  do_div() is NOT a C function(m, d)
22  m先自加
23  m等于m
24  sh1等于两数取小(l, 1)
25  sh2等于两数取大(l - 1, 0)
27  返回:R
调用者
名称描述
__kmem_cache_create__kmem_cache_create - Create a cache.*@cachep: cache management descriptor*@flags: SLAB flags* Returns a ptr to the cache on success, NULL on failure.* Cannot be called within a int, but can be interrupted.