函数逻辑报告

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 unsigned long __ffs(unsigned long word)

返回类型:unsigned long

参数:

类型参数名称
unsigned longword
235  asm("rep; bsf %1,%0":"=r"(word):"rm"(word))
238  返回:word
调用者
名称描述
radix_tree_find_next_bitadix_tree_find_next_bit - find the next set bit in a memory region*@addr: The address to base the search on*@size: The bitmap size in bits*@offset: The bitnumber to start searching at* Unrollable variant of find_next_bit() for constant size arrays.
xa_store_rangexa_store_range() - Store this entry at a range of indices in the XArray
__ctzsi2
__ctzdi2
_find_next_bitThis is a common helper function for find_next_bit, find_next_zero_bit, and* find_next_and_bit. The differences are:* - The "invert" argument, which is XORed with each fetched word before* searching it for one bits.
gcdgcd - calculate and return the greatest common divisor of 2 unsigned longs*@a: first value*@b: second value
assoc_array_insert_mid_shortcutHandle insertion into the middle of a shortcut.
irq_gc_get_irq_data
__next_base
pcpu_block_updatepcpu_block_update - updates a block given a free area*@block: block of interest*@start: start offset in block*@end: end offset in block* Updates a block given a known free area. The region [start, end) is
pcpu_find_zero_areapcpu_find_zero_area - modified from bitmap_find_next_zero_area_off()*@map: the address to base the search on*@size: the bitmap size in bits*@start: the bitnumber to start searching at*@nr: the number of zeroed bits we're looking for*@align_mask: alignment
__free_pages_memory
keyring_diff_objectsCompare the index keys of a pair of objects and determine the bit position* at which they differ - if they differ.
sched_find_first_bitEvery architecture must define this function. It's the fastest* way of searching a 100-bit bitmap. It's guaranteed that at least* one of the 100 bits is cleared.
__ffs64__ffs64 - find first set bit in a 64 bit word*@word: The 64 bit word* On 64 bit arches this is a synomyn for __ffs* The result is not defined if no bits are set, so check that @word* is non-zero before calling this.
xas_find_chunkPrivate
radix_tree_next_slotadix_tree_next_slot - find next slot in chunk*@slot: pointer to current slot*@iter: pointer to interator state*@flags: RADIX_TREE_ITER_*, should be constant* Returns: pointer to next slot, or NULL if there no more left
LZ4_NbCommonBytes
rdma_find_pg_bitdma_find_pg_bit - Find page bit given address and HW supported page sizes*@addr: address*@pgsz_bitmap: bitmap of HW supported page sizes
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.
iova_shift