函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:padata_serial_worker

函数原型:static void padata_serial_worker(struct work_struct *serial_work)

返回类型:void

参数:

类型参数名称
struct work_struct *serial_work
288  LIST_HEAD(local_list)
291  local_bh_disable()
292  squeue等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(serial_work, structpadata_serial_queue, work)
293  pd等于pd
295  加自旋锁
296  list_replace_init( & list, & local_list)
297  自旋锁解锁
299  cnt等于0
301  当非链表为空循环
304  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.(next, structpadata_priv, list)
307  删除链表项并重新初始化
309  serial(padata)
310  cnt自加
312  local_bh_enable()
314  如果atomic_sub_and_test(cnt, & refcnt)则padata_free_pd(pd)