函数逻辑报告

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() with given parameters.

函数原型:static int __init do_kmalloc_size(size_t size, int *total_failures)

返回类型:int

参数:

类型参数名称
size_tsize
int *total_failures
102  buf等于kmalloc(size, GFP_KERNEL)
103  fill_with_garbage(buf, size)
104  kfree(buf)
106  buf等于kmalloc(size, GFP_KERNEL)
107  如果Calculate the number of uninitialized bytes in the buffer. total_failures自加
109  fill_with_garbage(buf, size)
110  kfree(buf)
111  返回:1
调用者
名称描述
test_kvmallocTest kmalloc()/vmalloc() by allocating objects of different sizes.