Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fake_resource_1_init

Proto:static int fake_resource_1_init(struct kunit_resource *res, void *context)

Type:int

Parameter:

TypeParameterName
struct kunit_resource *res
void *context
237  ctx = context
239  kunit_alloc_and_get_resource( & test, fake_resource_2_init, fake_resource_2_free, GFP_KERNEL, ctx)
245  KUNIT_RESOURCE_TEST_MARK_ORDER(ctx, allocate_order, 1)
247  allocation = ctx
249  Return 0