Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\list.h Create Date:2022-07-28 05:34:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:list_swap - replace entry1 with entry2 and re-add entry1 at entry2's position*@entry1: the location to place entry2*@entry2: the location to place entry1

Proto:static inline void list_swap(struct list_head *entry1, struct list_head *entry2)

Type:void

Parameter:

TypeParameterName
struct list_head *entry1
struct list_head *entry2
175  pos = prev
177  deletes entry from list
178  list_replace - replace old entry by new one*@old : the element to be replaced*@new : the new element to insert* If @old was empty, it will be overwritten.
179  If pos == entry1 Then pos = entry2
181  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
Caller
NameDescribe
list_test_list_swap
__shuffle_zone