Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_for_each_set_clump8

Proto:static void __init test_for_each_set_clump8(void)

Type:void

Parameter:Nothing

493  DECLARE_BITMAP(bits, CLUMP_EXP_NUMBITS)
498  bitmap_zero(bits, CLUMP_EXP_NUMBITS)
499  bitmap_set(bits, 0, 1)
500  bitmap_set(bits, 9, 1)
501  bitmap_set(bits, 27, 3)
502  bitmap_set(bits, 35, 3)
503  bitmap_set(bits, 40, 4)
504  bitmap_set(bits, 48, 8)
505  bitmap_set(bits, 56, 1)
506  bitmap_set(bits, 58, 1)
508  r_each_set_clump8 - iterate over bitmap for each 8-bit clump with set bits*@start: bit offset to start search and to store the current iteration offset*@clump: location to store copy of current 8-bit clump*@bits: bitmap address to base the search (start, clump, bits, CLUMP_EXP_NUMBITS)
509  expect_eq_clump8(start, CLUMP_EXP_NUMBITS, clump_exp, & clump)
Caller
NameDescribe
selftest