函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Run the tests. Each test function returns the number of executed tests and* updates |failures| with the number of failed tests.

函数原型:static int __init test_meminit_init(void)

返回类型:int

参数:

393  failures等于0, num_tests等于0
395  num_tests加等于Test the page allocator by calling alloc_pages with different orders.
396  num_tests加等于Test kmalloc()/vmalloc() by allocating objects of different sizes.
397  num_tests加等于Test kmem_cache allocation by creating caches of different sizes, with and* without constructors, with and without SLAB_TYPESAFE_BY_RCU.
398  num_tests加等于Test the behavior of SLAB_TYPESAFE_BY_RCU caches of different sizes.
400  如果failures恒等于0则打印信息("all %d tests passed!\n", num_tests)
402  否则打印信息("failures: %d out of %d\n", failures, num_tests)
405  返回:如果failures则负EINVAL否则0