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_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

Proto:int seq_buf_puts(struct seq_buf *s, const char *str)

Type:int

Parameter:

TypeParameterName
struct seq_buf *s
const char *str
143  len = strlen(str)
145  WARN_ON(size == 0)
148  len += 1
150  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
151  No 3D Now!(buffer + len, str, len)
153  len += len - 1
154  Return 0
156  seq_buf_set_overflow(s)
157  Return -1