Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:padata_serial_worker

Proto:static void padata_serial_worker(struct work_struct *serial_work)

Type:void

Parameter:

TypeParameterName
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  spin_lock( & lock)
296  list_replace_init( & list, & local_list)
297  spin_unlock( & lock)
299  cnt = 0
301  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
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  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
309  serial(padata)
310  cnt++
312  local_bh_enable()
314  If atomic_sub_and_test(cnt, & refcnt) Then padata_free_pd(pd)