Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:list_test_list_bulk_move_tail

Proto:static void list_test_list_bulk_move_tail(struct kunit *test)

Type:void

Parameter:

TypeParameterName
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  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
213  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
215  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
216  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
217  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
218  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
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)