Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Test vmalloc() with given parameters.

Proto:static int __init do_vmalloc_size(size_t size, int *total_failures)

Type:int

Parameter:

TypeParameterName
size_tsize
int *total_failures
119  buf = vmalloc(size)
120  fill_with_garbage(buf, size)
121  vfree(buf)
123  buf = vmalloc(size)
124  If Calculate the number of uninitialized bytes in the buffer. Then total_failures++
126  fill_with_garbage(buf, size)
127  vfree(buf)
128  Return 1
Caller
NameDescribe
test_kvmallocTest kmalloc()/vmalloc() by allocating objects of different sizes.