Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int seq_buf_putc(struct seq_buf *s, unsigned char c)

Type:int

Parameter:

TypeParameterName
struct seq_buf *s
unsigned charc
171  WARN_ON(size == 0)
173  If 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 Then
174  buffer[len++] = c
175  Return 0
177  seq_buf_set_overflow(s)
178  Return -1