Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_zero_clear

Proto:static void __init test_zero_clear(void)

Type:void

Parameter:Nothing

178  DECLARE_BITMAP(find a block number in a file, 1024)
181  memset(find a block number in a file, 0xff, 128)
183  expect_eq_pbl("0-22", find a block number in a file, 23)
184  expect_eq_pbl("0-1023", find a block number in a file, 1024)
187  bitmap_clear(find a block number in a file, 0, 9)
188  expect_eq_pbl("9-1023", find a block number in a file, 1024)
190  bitmap_zero(find a block number in a file, 35)
191  expect_eq_pbl("64-1023", find a block number in a file, 1024)
194  bitmap_clear(find a block number in a file, 79, 19)
195  expect_eq_pbl("64-78,98-1023", find a block number in a file, 1024)
197  bitmap_zero(find a block number in a file, 115)
198  expect_eq_pbl("128-1023", find a block number in a file, 1024)
201  bitmap_zero(find a block number in a file, 1024)
202  expect_eq_pbl("", find a block number in a file, 1024)
Caller
NameDescribe
selftest