函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:show_header

函数原型:static ssize_t show_header(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
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  如果ppos则返回:0
1570  s等于开辟内存
1571  如果非s则返回:负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  返回:r