Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kunit_alloc_resource() - Allocates a *test managed resource*

Proto:static inline void *kunit_alloc_resource(struct kunit *test, kunit_resource_init_t init, kunit_resource_free_t free, gfp_t internal_gfp, void *context)

Type:void

Parameter:

TypeParameterName
struct kunit *test
kunit_resource_init_tinit
kunit_resource_free_tfree
gfp_tinternal_gfp
void *context
260  res = kunit_alloc_and_get_resource(test, init, free, internal_gfp, context)
263  If res Then Return allocation
266  Return NULL
Caller
NameDescribe
kunit_kmalloc
alloc_string_stream_fragment
alloc_string_stream