Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kunit_cleanup

Proto:void kunit_cleanup(struct kunit *test)

Type:void

Parameter:

TypeParameterName
struct kunit *test
464  When (true) cycle
465  spin_lock( & Guards all mutable test state. )
468  Break
470  resource = list_last_entry - get the last element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & Protected by lock. , structkunit_resource, node)
473  deletes entry from list
474  spin_unlock( & Guards all mutable test state. )
476  kunit_resource_free(test, resource)
Caller
NameDescribe
kunit_case_internal_cleanup
kunit_resource_test_cleanup_resources
kunit_resource_test_proper_free_orderingTODO(brendanhiggins@google.com): replace the arrays that keep track of the* order of allocation and freeing with strict mocks using the IN_SEQUENCE macro* to assert allocation and freeing order when the feature becomes available.
kunit_resource_test_exit