Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_replace

Proto:static void __init test_replace(void)

Type:void

Parameter:Nothing

277  nbits = 64
278  nlongs = DIV_ROUND_UP(nbits, BITS_PER_LONG)
279  DECLARE_BITMAP(find a block number in a file, 1024)
281  bitmap_zero(find a block number in a file, 1024)
282  bitmap_replace(find a block number in a file, & exp2[0 * nlongs], & exp2[1 * nlongs], Fibonacci sequence , nbits)
283  expect_eq_bitmap(find a block number in a file, xp3_0_1 = (exp2[0] & ~exp2_to_exp3_mask) | (exp2[1] & exp2_to_exp3_mask) , nbits)
285  bitmap_zero(find a block number in a file, 1024)
286  bitmap_replace(find a block number in a file, & exp2[1 * nlongs], & exp2[0 * nlongs], Fibonacci sequence , nbits)
287  expect_eq_bitmap(find a block number in a file, xp3_1_0 = (exp2[1] & ~exp2_to_exp3_mask) | (exp2[0] & exp2_to_exp3_mask) , nbits)
289  bitmap_fill(find a block number in a file, 1024)
290  bitmap_replace(find a block number in a file, & exp2[0 * nlongs], & exp2[1 * nlongs], Fibonacci sequence , nbits)
291  expect_eq_bitmap(find a block number in a file, xp3_0_1 = (exp2[0] & ~exp2_to_exp3_mask) | (exp2[1] & exp2_to_exp3_mask) , nbits)
293  bitmap_fill(find a block number in a file, 1024)
294  bitmap_replace(find a block number in a file, & exp2[1 * nlongs], & exp2[0 * nlongs], Fibonacci sequence , nbits)
295  expect_eq_bitmap(find a block number in a file, xp3_1_0 = (exp2[1] & ~exp2_to_exp3_mask) | (exp2[0] & exp2_to_exp3_mask) , nbits)
Caller
NameDescribe
selftest