Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static bool seq_buf_can_fit(struct seq_buf *s, size_t len)

Type:bool

Parameter:

TypeParameterName
struct seq_buf *s
size_tlen
30  Return len + len <= size
Caller
NameDescribe
seq_buf_putsseq_buf_puts - sequence printing of simple string*@s: seq_buf descriptor*@str: simple string to record* Copy a simple string into the sequence buffer.* Returns zero on success, -1 on overflow
seq_buf_putcseq_buf_putc - sequence printing of simple character*@s: seq_buf descriptor*@c: simple character to record* Copy a single character into the sequence buffer.* Returns zero on success, -1 on overflow
seq_buf_putmemseq_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