函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\list-test.c Create Date:2022-07-27 08:23:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:list_test_list_bulk_move_tail

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

返回类型:void

参数:

类型参数名称
struct kunit *test
205  struct list_head * list1_values[] = { & x, & b, & c, & y}
206  struct list_head * list2_values[] = { & a, & d}
208  LIST_HEAD(list1)
209  LIST_HEAD(list2)
210  i等于0
212  添加链表项
213  添加链表项
215  添加链表项
216  添加链表项
217  添加链表项
218  添加链表项
221  list_bulk_move_tail - move a subsection of a list to its tail*@head: the head that will follow our entry*@first: first entry to move*@last: last entry to move, can be the same as first* Move all entries between @first and including @last before @head.
225  KUNIT_EXPECT_PTR_EQ() - Expects that pointers @left and @right are equal(test, ptr, list1_values[i])
226  i自加
228  KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, i, 4)
229  i等于0
231  KUNIT_EXPECT_PTR_EQ() - Expects that pointers @left and @right are equal(test, ptr, list2_values[i])
232  i自加
234  KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, i, 2)