函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:seq_buf_putmem - write raw data into the sequenc buffer*@s: seq_buf descriptor*@mem: The raw memory to copy into the buffer*@len: The length of the raw memory to copy (in bytes)* There may be cases where raw memory needs to be written into the

函数原型:int seq_buf_putmem(struct seq_buf *s, const void *mem, unsigned int len)

返回类型:int

参数:

类型参数名称
struct seq_buf *s
const void *mem
unsigned intlen
195  WARN_ON(size == 0)
197  如果seq_buf_can_fit - can the new data fit in the current buffer?*@s: the seq_buf descriptor*@len: The length to see if it can fit in the current buffer* Returns true if there's enough unused space in the seq_buf buffer
198  内存复制(buffer + len, mem, len)
199  len加等于len
200  返回:0
202  seq_buf_set_overflow(s)
203  返回:负1
调用者
名称描述
seq_buf_putmem_hexseq_buf_putmem_hex - write raw memory into the buffer in ASCII hex*@s: seq_buf descriptor*@mem: The raw memory to write its hex ASCII representation of*@len: The length of the raw memory to copy (in bytes)* This is similar to seq_buf_putmem() except
trace_seq_putmemrace_seq_putmem - write raw data into the trace_seq buffer*@s: trace sequence descriptor*@mem: The raw memory to copy into the buffer*@len: The length of the raw memory to copy (in bytes)* There may be cases where raw memory needs to be written into the
trace_seq_putsrace_seq_puts - trace sequence printing of simple string*@s: trace sequence descriptor*@str: simple string to record* The tracer may use either the sequence operations or its own* copy to user routines