Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:show_cpumask

Proto:static ssize_t show_cpumask(struct padata_instance *pinst, struct attribute *attr, char *buf)

Type:ssize_t

Parameter:

TypeParameterName
struct padata_instance *pinst
struct attribute *attr
char *buf
857  mutex_lock( & lock)
858  If Not strcmp(name, "serial_cpumask") Then cpumask = cbcpu
860  Else cpumask = pcpu
863  len = snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
865  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.
866  Return If len < PAGE_SIZE Then len Else -EINVAL