函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:TODO add a seq_buf_to_buffer()

函数原型:static ssize_t trace_seq_to_buffer(struct trace_seq *s, void *buf, size_t cnt)

返回类型:ssize_t

参数:

类型参数名称
struct trace_seq *s
void *buf
size_tcnt
1502  如果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小于等于readpos则返回:负EBUSY
1505  len等于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 amountreadpos
1506  如果cnt大于lencnt等于len
1508  内存复制(buf, buffer + readpos, cnt)
1510  readpos加等于cnt
1511  返回:cnt
调用者
名称描述
tracing_splice_read_pipe