Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:list_test_list_init

Proto:static void list_test_list_init(struct kunit *test)

Type:void

Parameter:

TypeParameterName
struct kunit *test
20  list1 = Simple doubly linked list implementation(list1)
22  LIST_HEAD(list3)
26  Initialization list head
28  list4 = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
29  Initialization list head
31  list5 = kmalloc( size of list5 , GFP_KERNEL | __GFP_NOFAIL)
32  memset(list5, 0xFF, size of list5 )
33  Initialization list head
36  KUNIT_EXPECT_TRUE() - Causes a test failure when the expression is not true(test, list_empty_careful - tests whether a list is empty and not being modified*@head: the list to test* Description:* tests whether a list is empty _and_ checks that no other CPU might be* in the process of modifying either member (next or prev)* NOTE: using )
37  KUNIT_EXPECT_TRUE() - Causes a test failure when the expression is not true(test, list_empty_careful - tests whether a list is empty and not being modified*@head: the list to test* Description:* tests whether a list is empty _and_ checks that no other CPU might be* in the process of modifying either member (next or prev)* NOTE: using )
38  KUNIT_EXPECT_TRUE() - Causes a test failure when the expression is not true(test, list_empty_careful - tests whether a list is empty and not being modified*@head: the list to test* Description:* tests whether a list is empty _and_ checks that no other CPU might be* in the process of modifying either member (next or prev)* NOTE: using )
39  KUNIT_EXPECT_TRUE() - Causes a test failure when the expression is not true(test, list_empty_careful - tests whether a list is empty and not being modified*@head: the list to test* Description:* tests whether a list is empty _and_ checks that no other CPU might be* in the process of modifying either member (next or prev)* NOTE: using )
40  KUNIT_EXPECT_TRUE() - Causes a test failure when the expression is not true(test, list_empty_careful - tests whether a list is empty and not being modified*@head: the list to test* Description:* tests whether a list is empty _and_ checks that no other CPU might be* in the process of modifying either member (next or prev)* NOTE: using )
42  kfree(list4)
43  kfree(list5)