Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pd_setup_cpumasks

Proto:static int pd_setup_cpumasks(struct parallel_data *pd, const struct cpumask *pcpumask, const struct cpumask *cbcpumask)

Type:int

Parameter:

TypeParameterName
struct parallel_data *pd
const struct cpumask *pcpumask
const struct cpumask *cbcpumask
374  err = -ENOMEM
376  If Not alloc_cpumask_var( & pcpu, GFP_KERNEL) Then Go to out
378  If Not alloc_cpumask_var( & cbcpu, GFP_KERNEL) Then Go to free_pcpu_mask
381  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
382  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
384  Return 0
386  free_pcpu_mask :
387  free_cpumask_var(pcpu)
388  out :
389  Return err
Caller
NameDescribe
padata_alloc_pdAllocate and initialize the internal cpumask dependend resources.