函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:padata_find_next - Find the next object that needs serialization

函数原型:static struct padata_priv *padata_find_next(struct parallel_data *pd, bool remove_object)

返回类型:struct padata_priv

参数:

类型参数名称
struct parallel_data *pd
boolremove_object
181  cpu等于cpu
183  next_queue等于per_cpu_ptr(pqueue, cpu)
184  reorder等于reorder
186  加自旋锁
187  如果链表为空
188  自旋锁解锁
189  返回:NULL
192  padata等于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.(链表后项, structpadata_priv, list)
198  如果seq_nr不等于processed
199  自旋锁解锁
200  返回:NULL
203  如果remove_object
204  删除链表项并重新初始化
205  atomic_dec( & reorder_objects)
206  processed先自加
207  cpu等于cpumask_next_wrap(cpu, pcpu, - 1, false)
210  自旋锁解锁
211  返回:padata
调用者
名称描述
padata_reorder