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_cut_before - cut a list into two, before given entry*@list: a new list to add all removed entries*@head: a list with entries*@entry: an entry within head, could be the head itself* This helper moves the initial part of @head, up to but

Proto:static inline void list_cut_before(struct list_head *list, struct list_head *head, struct list_head *entry)

Type:void

Parameter:

TypeParameterName
struct list_head *list
struct list_head *head
struct list_head *entry
389  If next == entry Then
390  Initialization list head
391  Return
393  next = next
394  prev = list
395  prev = prev
396  next = list
397  next = entry
398  prev = head
Caller
NameDescribe
list_test_list_cut_before