Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:padata_set_cpumask: Sets specified by @cpumask_type cpumask to the value* equivalent to @cpumask

Proto:int padata_set_cpumask(struct padata_instance *pinst, int cpumask_type, cpumask_var_t cpumask)

Type:int

Parameter:

TypeParameterName
struct padata_instance *pinst
intcpumask_type
cpumask_var_tcpumask
644  err = -EINVAL
646  mutex_lock( & lock)
647  get_online_cpus()
650  Case cpumask_type == PADATA_CPU_PARALLEL
651  serial_mask = cbcpu
652  parallel_mask = cpumask
653  Break
654  Case cpumask_type == PADATA_CPU_SERIAL
655  parallel_mask = pcpu
656  serial_mask = cpumask
657  Break
658  Default
659  Go to out
662  err = __padata_set_cpumasks(pinst, parallel_mask, serial_mask)
664  out :
665  put_online_cpus()
666  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
668  Return err
Caller
NameDescribe
store_cpumask