函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:show_cpumask

函数原型:static ssize_t show_cpumask(struct padata_instance *pinst, struct attribute *attr, char *buf)

返回类型:ssize_t

参数:

类型参数名称
struct padata_instance *pinst
struct attribute *attr
char *buf
857  mutex_lock( & lock)
858  如果非字符串比较cpumask等于cbcpu
860  否则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  返回:如果len小于PAGE_SIZElen否则负EINVAL