Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:llist_reverse_order - reverse order of a llist chain*@head: first item of the list to be reversed* Reverse the order of a chain of llist entries and return the* new first entry.

Proto:struct llist_node *llist_reverse_order(struct llist_node *head)

Type:struct llist_node

Parameter:

TypeParameterName
struct llist_node *head
81  struct llist_node * new_head = NULL
83  When head cycle
84  tmp = head
85  head = next
86  next = new_head
87  new_head = tmp
90  Return new_head