函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\plist.c Create Date:2022-07-27 07:11:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:添加节点到头上

函数原型:void plist_add(struct plist_node *node, struct plist_head *head)

返回类型:void

参数:

类型参数名称
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(!节点不在链表上)
80  WARN_ON(!链表为空)
82  如果判断链表空则转到:ins_node
85  first等于iter等于返回第一个节点
87  循环
88  如果prio小于prio
89  node_next等于node_list
90  退出
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.(链表后项, structplist_node, prio_list)
96 iter不等于first循环
98  如果非prevprio不等于prio添加链表项
100  ins_node :
101  添加链表项
103  plist_check_head(head)
调用者
名称描述
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
pm_qos_update_targetpm_qos_update_target - manages the constraints list and calls the notifiers* if needed*@c: constraints data struct*@node: request to add to the list, to update or to remove*@action: action to take on the constraints list*@value: value of the request to
add_to_avail_list