函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kunit_kmalloc

函数原型:void *kunit_kmalloc(struct kunit *test, size_t size, gfp_t gfp)

返回类型:void

参数:

类型参数名称
struct kunit *test
size_tsize
gfp_tgfp
427  struct kunit_kmalloc_params params = {size = size, gfp = gfp}
432  返回:kunit_alloc_resource() - Allocates a *test managed resource*
调用者
名称描述
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.