Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\count_zeros.h Create Date:2022-07-28 07:18:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:_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.

Proto:static inline int count_trailing_zeros(unsigned long x)

Type:int

Parameter:

TypeParameterName
unsigned longx
47  If size of x == 4 Then Return find first bit in word
49  Else Return If x != 0 Then __ffs - find first set bit in word*@word: The word to search* Undefined if no bit exists, so code should check against 0 first. Else count_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.