函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bitops.h Create Date:2022-07-27 06:38:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:fls_long

函数原型:static inline unsigned fls_long(unsigned long l)

返回类型:unsigned

参数:

类型参数名称
unsigned longl
181  如果l的长度恒等于4则返回: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
183  返回:ls64 - find last set bit in a 64-bit word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffsll, but returns the position of the most significant set bit
调用者
名称描述
array_map_alloc
workingset_init
get_count_order_longget_count_order_long - get order after rounding @l up to power of 2*@l: parameter* it is same as get_count_order() but with long type parameter
__roundup_pow_of_two__roundup_pow_of_two() - round up to nearest power of two*@n: value to round up
__rounddown_pow_of_two__rounddown_pow_of_two() - round down to nearest power of two*@n: value to round down