函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:padata_reorder

函数原型:static void padata_reorder(struct parallel_data *pd)

返回类型:void

参数:

类型参数名称
struct parallel_data *pd
216  pinst等于pinst
232  如果非spin_trylock_bh( & lock)则返回
235  当1循环
236  padata等于padata_find_next - Find the next object that needs serialization
243  如果非padata退出
246  cb_cpu等于cb_cpu
247  squeue等于per_cpu_ptr(squeue, cb_cpu)
249  加自旋锁
250  添加链表项
251  自旋锁解锁
253  queue_work_on - queue work on specific cpu*@cpu: CPU number to execute work on*@wq: workqueue to use*@work: work to queue* We queue the work to a specific CPU, the caller must ensure it* can't go away.
256  spin_unlock_bh( & lock)
266  smp_mb()
268  next_queue等于per_cpu_ptr(pqueue, cpu)
269  如果非链表为空padata_find_next - Find the next object that needs serializationqueue_work - queue work on a workqueue*@wq: workqueue to use*@work: work to queue* Returns %false if @work was already on a queue, %true otherwise.* We queue the work to the CPU on which it was submitted, but if the CPU dies
调用者
名称描述
invoke_padata_reorder
padata_do_serialpadata_do_serial - padata serialization function*@padata: object to be serialized.* padata_do_serial must be called for every parallelized object.* The serialization callback function will run with BHs off.