函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bitmap

函数原型:static void __init bitmap(void)

返回类型:void

参数:

524  DECLARE_BITMAP(bits, 20)
525  const int primes[] = {2, 3, 5, 7, 11, 13, 17, 19}
528  bitmap_zero(bits, 20)
529  test("00000|00000", "%20pb|%*pb", bits, 20, bits)
530  test("|", "%20pbl|%*pbl", bits, 20, bits)
532 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(primes)循环set_bit - Atomically set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* This is a relaxed atomic operation (no implied memory barriers).* Note that @nr may be almost arbitrarily large; this function is not
534  test("a28ac|a28ac", "%20pb|%*pb", bits, 20, bits)
535  test("2-3,5,7,11,13,17,19|2-3,5,7,11,13,17,19", "%20pbl|%*pbl", bits, 20, bits)
537  bitmap_fill(bits, 20)
538  test("fffff|fffff", "%20pb|%*pb", bits, 20, bits)
539  test("0-19|0-19", "%20pbl|%*pbl", bits, 20, bits)
541  large_bitmap()
调用者
名称描述
test_pointer