Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:padata_find_next - Find the next object that needs serialization

Proto:static struct padata_priv *padata_find_next(struct parallel_data *pd, bool remove_object)

Type:struct padata_priv

Parameter:

TypeParameterName
struct parallel_data *pd
boolremove_object
181  cpu = cpu
183  next_queue = per_cpu_ptr(pqueue, cpu)
184  reorder = reorder
186  spin_lock( & lock)
187  If list_empty - tests whether a list is empty*@head: the list to test. Then
188  spin_unlock( & lock)
189  Return 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.(next, structpadata_priv, list)
198  If seq_nr != processed Then
199  spin_unlock( & lock)
200  Return NULL
203  If remove_object Then
204  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
205  atomic_dec( & reorder_objects)
206  ++processed
207  cpu = cpumask_next_wrap(cpu, pcpu, - 1, false)
210  spin_unlock( & lock)
211  Return padata
Caller
NameDescribe
padata_reorder