Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tracing_cpumask_read

Proto:static ssize_t tracing_cpumask_read(struct file *filp, char __user *ubuf, size_t count, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *filp
char __user *ubuf
size_tcount
loff_t *ppos
4535  tr = s or device private pointer
4539  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*@ + 1
4541  mask_str = Allocation memory
4542  If Not mask_str Then Return -ENOMEM
4545  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*@
4547  If len >= count Then
4548  count = -EINVAL
4549  Go to out_err
4551  count = simple_read_from_buffer(ubuf, count, ppos, mask_str, len)
4553  out_err :
4554  kfree(mask_str)
4556  Return count