函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\padata.c Create Date:2022-07-27 15:09:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:store_cpumask

函数原型:static ssize_t store_cpumask(struct padata_instance *pinst, struct attribute *attr, const char *buf, size_t count)

返回类型:ssize_t

参数:

类型参数名称
struct padata_instance *pinst
struct attribute *attr
const char *buf
size_tcount
877  如果非分配CPU掩码则返回:负ENOMEM
880  ret等于bitmap_parse(buf, count, cpumask_bits - get the bits in a cpumask*@maskp: the struct cpumask ** You should only assume nr_cpu_ids bits of this mask are valid. This is* a macro so it's const-correct.(new_cpumask), nr_cpumask_bits)
882  如果ret小于0则转到:out
885  mask_type等于如果非字符串比较PADATA_CPU_SERIAL否则PADATA_CPU_PARALLEL
887  ret等于padata_set_cpumask: Sets specified by @cpumask_type cpumask to the value* equivalent to @cpumask
888  如果非retret等于count
891  out :
892  释放CPU掩码
893  返回:ret