Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_bitmap_arr32

Proto:static void __init test_bitmap_arr32(void)

Type:void

Parameter:Nothing

420  DECLARE_BITMAP(bmap2, EXP1_IN_BITS)
422  memset(arr, 0xa5, size of arr )
424  When nbits < EXP1_IN_BITS cycle
425  bitmap_to_arr32(arr, exp1, nbits)
426  bitmap_from_arr32(bmap2, arr, nbits)
427  expect_eq_bitmap(bmap2, exp1, nbits)
429  next_bit = Find the next set bit in a memory region.
431  If next_bit < und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(nbits, BITS_PER_LONG) Then pr_err("bitmap_copy_arr32(nbits == %d: tail is not safely cleared: %d\n", nbits, next_bit)
436  If nbits < EXP1_IN_BITS - 32 Then expect_eq_uint(arr[DIV_ROUND_UP(nbits, 32)], 0xa5a5a5a5)
Caller
NameDescribe
selftest