函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:在字中找到第一个指定位

函数原型:static __always_inline int ffs(int x)

返回类型:int

参数:

类型参数名称
intx
297  asm("bsfl %1,%0":"=r"(r):"rm"(x), "0"(-1))
310  返回:r加1
调用者
名称描述
closid_alloc
set_block_size
__do_softirq
count_trailing_zeros_trailing_zeros - Count the number of zeros from the LSB forwards*@x: The value* Count the number of trailing zeros from the LSB going towards the MSB in @x.* If the LSB of @x is set, the result is 0.