Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:padata_replace

Proto:static int padata_replace(struct padata_instance *pinst)

Type:int

Parameter:

TypeParameterName
struct padata_instance *pinst
517  notification_mask = 0
521  flags |= PADATA_RESET
523  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
524  pumask_and - *dstp = *src1p & *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
526  If Not pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input Then notification_mask |= PADATA_CPU_PARALLEL
529  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
530  pumask_and - *dstp = *src1p & *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
532  If Not pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input Then notification_mask |= PADATA_CPU_SERIAL
536  err = Replace the internal control structure with a new one.
537  If err Then Break
541  Wait for a grace period to elapse. But it is illegal to invoke* synchronize_rcu() from within an RCU read-side critical section.* Therefore, any legal call to synchronize_rcu() is a quiescent
543  list_for_each_entry_continue_reverse - iterate backwards from the given point*@pos: the type * to use as a loop cursor(ps, & pslist, list)
544  If atomic_dec_and_test( & refcnt) Then padata_free_pd(opd)
547  If notification_mask Then blocking_notifier_call_chain( & cpumask_change_notifier, notification_mask, & cpumask)
552  flags &= ~PADATA_RESET
554  Return err
Caller
NameDescribe
__padata_set_cpumasks