Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kunit_kmalloc

Proto:void *kunit_kmalloc(struct kunit *test, size_t size, gfp_t gfp)

Type:void

Parameter:

TypeParameterName
struct kunit *test
size_tsize
gfp_tgfp
427  struct kunit_kmalloc_params params = {size = size, gfp = gfp}
432  Return kunit_alloc_resource() - Allocates a *test managed resource*
Caller
NameDescribe
string_stream_fragment_init
kunit_try_catch_test_init
kunit_kzallockunit_kzalloc() - Just like kunit_kmalloc(), but zeroes the allocation.*@test: The test context object.*@size: The size in bytes of the desired memory.*@gfp: flags passed to underlying kmalloc().* See kzalloc() and kunit_kmalloc() for more information.