Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:show_header

Proto:static ssize_t show_header(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
1563  int( * func)(struct trace_seq * s) = needed for tty driver, and maybe others
1567  If ppos Then Return 0
1570  s = Allocation memory
1571  If Not s Then Return -ENOMEM
1574  trace_seq_init(s)
1576  func(s)
1577  r = simple_read_from_buffer(ubuf, cnt, ppos, buffer, race_seq_used - amount of actual data written to buffer*@s: trace sequence descriptor* Returns the amount of data written to the buffer.* IMPORTANT!* Use this instead of @s->seq.len if you need to pass the amount)
1580  kfree(s)
1582  Return r