函数逻辑报告

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_cleanup

函数原型:void kunit_cleanup(struct kunit *test)

返回类型:void

参数:

类型参数名称
struct kunit *test
464  当(true)循环
465  加自旋锁
466  如果链表为空
468  退出
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  删除链表项
474  自旋锁解锁
476  kunit_resource_free(test, resource)
调用者
名称描述
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