函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\find_bit_benchmark.c Create Date:2022-07-27 07:23:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This is Schlemiel the Painter's algorithm. It should be called after* all other tests for the same bitmap because it sets all bits of bitmap to 1.

函数原型:static int __init test_find_first_bit(void *bitmap, unsigned long len)

返回类型:int

参数:

类型参数名称
void *bitmap
unsigned longlen
41  time等于ktime_get()
42 i小于len循环
43  i等于find_first_bit(bitmap, len)
44  __clear_bit - Clears a bit in memory*@nr: the bit to clear*@addr: the address to start counting from* Unlike clear_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation
46  time等于ktime_get()减time
47  打印错误信息("find_first_bit: %18llu ns, %6ld iterations\n", time, cnt)
49  返回:0
调用者
名称描述
find_bit_test