函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_bitmap.c Create Date:2022-07-27 07:30:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:test_bitmap_arr32

函数原型:static void __init test_bitmap_arr32(void)

返回类型:void

参数:

420  DECLARE_BITMAP(bmap2, EXP1_IN_BITS)
422  memset(arr, 0xa5, arr的长度)
424 nbits小于EXP1_IN_BITS循环
425  bitmap_to_arr32(arr, exp1, nbits)
426  bitmap_from_arr32(bmap2, arr, nbits)
427  expect_eq_bitmap(bmap2, exp1, nbits)
429  next_bit等于在内存区域中找到下一个设置位
431  如果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)则打印错误信息("bitmap_copy_arr32(nbits == %d: tail is not safely cleared: %d\n", nbits, next_bit)
436  如果nbits小于EXP1_IN_BITS减32则expect_eq_uint(arr[DIV_ROUND_UP(nbits, 32)], 0xa5a5a5a5)
调用者
名称描述
selftest