Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:plist_add - add @node to @head*@node: &struct plist_node pointer*@head: &struct plist_head pointer

Proto:void plist_add(struct plist_node *node, struct plist_head *head)

Type:void

Parameter:

TypeParameterName
struct plist_node *node
struct plist_head *head
75  struct plist_node * first, * iter, * prev = NULL
76  node_next = node_list
78  plist_check_head(head)
79  WARN_ON(!plist_node_empty - return !0 if plist_node is not on a list*@node: &struct plist_node pointer)
80  WARN_ON(!list_empty - tests whether a list is empty*@head: the list to test.)
82  If plist_head_empty - return !0 if a plist_head is empty*@head: &struct plist_head pointer Then Go to ins_node
85  first = iter = plist_first - return the first node (and thus, highest priority)*@head: the &struct plist_head pointer* Assumes the plist is _not_ empty.
87  Do
88  If prio < prio Then
90  Break
93  prev = iter
94  iter = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(next, structplist_node, prio_list)
96  When iter != first cycle
98  If Not prev || prio != prio Then 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.
100  ins_node :
101  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.
103  plist_check_head(head)
Caller
NameDescribe
requeue_futexqueue_futex() - Requeue a futex_q from one hb to another*@q: the futex_q to requeue*@hb1: the source hash_bucket*@hb2: the target hash_bucket*@key2: the new key for the requeued futex_q
__queue_me
_enable_swap_info