Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:store_cpumask

Proto:static ssize_t store_cpumask(struct padata_instance *pinst, struct attribute *attr, const char *buf, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
struct padata_instance *pinst
struct attribute *attr
const char *buf
size_tcount
877  If Not alloc_cpumask_var( & new_cpumask, GFP_KERNEL) Then Return -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  If ret < 0 Then Go to out
885  mask_type = If Not strcmp(name, "serial_cpumask") Then PADATA_CPU_SERIAL Else PADATA_CPU_PARALLEL
887  ret = padata_set_cpumask: Sets specified by @cpumask_type cpumask to the value* equivalent to @cpumask
888  If Not ret Then ret = count
891  out :
892  free_cpumask_var(new_cpumask)
893  Return ret