Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_printf.c Create Date:2022-07-28 06:32:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bitmap

Proto:static void __init bitmap(void)

Type:void

Parameter:Nothing

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  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(primes) cycle 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()
Caller
NameDescribe
test_pointer