函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Test kmalloc()/vmalloc() by allocating objects of different sizes.

函数原型:static int __init test_kvmalloc(int *total_failures)

返回类型:int

参数:

类型参数名称
int *total_failures
134  failures等于0, num_tests等于0
137 i小于20循环
138  size等于1左移i
139  num_tests加等于Test kmalloc() with given parameters.
140  num_tests加等于Test vmalloc() with given parameters.
143  REPORT_FAILURES_IN_FN()
144  total_failures加等于failures
145  返回:num_tests
调用者
名称描述
test_meminit_initRun the tests. Each test function returns the number of executed tests and* updates |failures| with the number of failed tests.