函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\seq_buf.h Create Date:2022-07-27 06:56:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:How much buffer was written?

函数原型:static inline unsigned int seq_buf_used(struct seq_buf *s)

返回类型:unsigned int

参数:

类型参数名称
struct seq_buf *s
71  返回:两数取小(len, size)
调用者
名称描述
seq_buf_print_seq移动seq_buf的内容到seq_file
seq_buf_to_userseq_buf_to_user - copy the squence buffer to user space*@s: seq_buf descriptor*@ubuf: The userspace memory location to copy to*@cnt: The amount to copy* Copies the sequence buffer into the userspace memory pointed to* by @ubuf
rdt_last_cmd_status_show
trace_seq_usedrace_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
trace_seq_buffer_ptrrace_seq_buffer_ptr - return pointer to next location in buffer*@s: trace sequence descriptor* Returns the pointer to the buffer where the next write to* the buffer will happen