Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hwlat_read - Wrapper read function for reading both window and width*@filp: The active open file structure*@ubuf: The userspace provided buffer to read value into*@cnt: The maximum number of bytes to read*@ppos: The current "file" position* This function

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

Type:ssize_t

Parameter:

TypeParameterName
struct file *filp
char __user *ubuf
size_tcnt
loff_t *ppos
414  entry = needed for tty driver, and maybe others
418  If Not entry Then Return -EFAULT
421  If cnt > size of buf Then cnt = size of buf
424  val = entry
426  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*@
428  Return simple_read_from_buffer(ubuf, cnt, ppos, buf, len)