函数逻辑报告

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

函数名称: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

函数原型:static __always_inline int fls(unsigned int x)

返回类型:int

参数:

类型参数名称
unsigned intx
338  asm("bsrl %1,%0":"=r"(r):"rm"(x), "0"(-1))
351  返回:r加1
调用者
名称描述
__clzsi2
__clzdi2
full_fit_alloc_test
div64_u64_remdiv64_u64_rem - unsigned 64bit divide with 64bit divisor and remainder*@dividend: 64bit dividend*@divisor: 64bit divisor*@remainder: 64bit remainder* This implementation is a comparable to algorithm used by div64_u64
div64_u64div64_u64 - unsigned 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor* This implementation is a modified version of the algorithm proposed* by the book 'Hacker's Delight'. The original source and full proof
reciprocal_valueFor a description of the algorithm please have a look at* include/linux/reciprocal_div.h
reciprocal_value_adv
deg
tk_debug_account_sleep_time
tracing_map_array_alloc
longest_prefix_matchlongest_prefix_match() - determine the longest prefix*@trie: The trie to get internal sizes from*@node: The node to operate on*@key: The key to compare to @node* Determine the longest prefix of @node that matches the bits in @key.
__pcpu_size_to_slot
lazy_max_pages
calculate_order
get_bitmask_order
fls_long
get_count_order
__ilog2_u32-constant log of base 2 calculators* - the arch may override these in asm/bitops.h if they can be implemented* more efficiently than using fls() and fls64()* - the arch is not required to handle n==0 if implementing the fallback
get_orderget_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory
task_state_index
count_leading_zeros_leading_zeros - Count the number of zeros from the MSB back*@x: The value* Count the number of leading zeros from the MSB going towards the LSB in @x.* If the MSB of @x is set, the result is 0.