32
32
* @s: the seq_buf descriptor
33
33
* @len: The length to see if it can fit in the current buffer
34
34
*
35
- * Returns true if there's enough unused space in the seq_buf buffer
35
+ * Returns: true if there's enough unused space in the seq_buf buffer
36
36
* to fit the amount of new data according to @len.
37
37
*/
38
38
static bool seq_buf_can_fit (struct seq_buf * s , size_t len )
@@ -45,7 +45,7 @@ static bool seq_buf_can_fit(struct seq_buf *s, size_t len)
45
45
* @m: the seq_file descriptor that is the destination
46
46
* @s: the seq_buf descriptor that is the source.
47
47
*
48
- * Returns zero on success, non zero otherwise
48
+ * Returns: zero on success, non- zero otherwise.
49
49
*/
50
50
int seq_buf_print_seq (struct seq_file * m , struct seq_buf * s )
51
51
{
@@ -60,9 +60,9 @@ int seq_buf_print_seq(struct seq_file *m, struct seq_buf *s)
60
60
* @fmt: printf format string
61
61
* @args: va_list of arguments from a printf() type function
62
62
*
63
- * Writes a vnprintf() format into the sequencce buffer.
63
+ * Writes a vnprintf() format into the sequence buffer.
64
64
*
65
- * Returns zero on success, -1 on overflow.
65
+ * Returns: zero on success, -1 on overflow.
66
66
*/
67
67
int seq_buf_vprintf (struct seq_buf * s , const char * fmt , va_list args )
68
68
{
@@ -88,7 +88,7 @@ int seq_buf_vprintf(struct seq_buf *s, const char *fmt, va_list args)
88
88
*
89
89
* Writes a printf() format into the sequence buffer.
90
90
*
91
- * Returns zero on success, -1 on overflow.
91
+ * Returns: zero on success, -1 on overflow.
92
92
*/
93
93
int seq_buf_printf (struct seq_buf * s , const char * fmt , ...)
94
94
{
@@ -104,12 +104,12 @@ int seq_buf_printf(struct seq_buf *s, const char *fmt, ...)
104
104
EXPORT_SYMBOL_GPL (seq_buf_printf );
105
105
106
106
/**
107
- * seq_buf_do_printk - printk seq_buf line by line
107
+ * seq_buf_do_printk - printk() seq_buf line by line
108
108
* @s: seq_buf descriptor
109
109
* @lvl: printk level
110
110
*
111
111
* printk()-s a multi-line sequential buffer line by line. The function
112
- * makes sure that the buffer in @s is nul terminated and safe to read
112
+ * makes sure that the buffer in @s is NUL- terminated and safe to read
113
113
* as a string.
114
114
*/
115
115
void seq_buf_do_printk (struct seq_buf * s , const char * lvl )
@@ -149,7 +149,7 @@ EXPORT_SYMBOL_GPL(seq_buf_do_printk);
149
149
* This function will take the format and the binary array and finish
150
150
* the conversion into the ASCII string within the buffer.
151
151
*
152
- * Returns zero on success, -1 on overflow.
152
+ * Returns: zero on success, -1 on overflow.
153
153
*/
154
154
int seq_buf_bprintf (struct seq_buf * s , const char * fmt , const u32 * binary )
155
155
{
@@ -177,7 +177,7 @@ int seq_buf_bprintf(struct seq_buf *s, const char *fmt, const u32 *binary)
177
177
*
178
178
* Copy a simple string into the sequence buffer.
179
179
*
180
- * Returns zero on success, -1 on overflow
180
+ * Returns: zero on success, -1 on overflow.
181
181
*/
182
182
int seq_buf_puts (struct seq_buf * s , const char * str )
183
183
{
@@ -206,7 +206,7 @@ EXPORT_SYMBOL_GPL(seq_buf_puts);
206
206
*
207
207
* Copy a single character into the sequence buffer.
208
208
*
209
- * Returns zero on success, -1 on overflow
209
+ * Returns: zero on success, -1 on overflow.
210
210
*/
211
211
int seq_buf_putc (struct seq_buf * s , unsigned char c )
212
212
{
@@ -222,7 +222,7 @@ int seq_buf_putc(struct seq_buf *s, unsigned char c)
222
222
EXPORT_SYMBOL_GPL (seq_buf_putc );
223
223
224
224
/**
225
- * seq_buf_putmem - write raw data into the sequenc buffer
225
+ * seq_buf_putmem - write raw data into the sequence buffer
226
226
* @s: seq_buf descriptor
227
227
* @mem: The raw memory to copy into the buffer
228
228
* @len: The length of the raw memory to copy (in bytes)
@@ -231,7 +231,7 @@ EXPORT_SYMBOL_GPL(seq_buf_putc);
231
231
* buffer and a strcpy() would not work. Using this function allows
232
232
* for such cases.
233
233
*
234
- * Returns zero on success, -1 on overflow
234
+ * Returns: zero on success, -1 on overflow.
235
235
*/
236
236
int seq_buf_putmem (struct seq_buf * s , const void * mem , unsigned int len )
237
237
{
@@ -259,7 +259,7 @@ int seq_buf_putmem(struct seq_buf *s, const void *mem, unsigned int len)
259
259
* raw memory into the buffer it writes its ASCII representation of it
260
260
* in hex characters.
261
261
*
262
- * Returns zero on success, -1 on overflow
262
+ * Returns: zero on success, -1 on overflow.
263
263
*/
264
264
int seq_buf_putmem_hex (struct seq_buf * s , const void * mem ,
265
265
unsigned int len )
@@ -307,7 +307,7 @@ int seq_buf_putmem_hex(struct seq_buf *s, const void *mem,
307
307
*
308
308
* Write a path name into the sequence buffer.
309
309
*
310
- * Returns the number of written bytes on success, -1 on overflow
310
+ * Returns: the number of written bytes on success, -1 on overflow.
311
311
*/
312
312
int seq_buf_path (struct seq_buf * s , const struct path * path , const char * esc )
313
313
{
@@ -342,6 +342,7 @@ int seq_buf_path(struct seq_buf *s, const struct path *path, const char *esc)
342
342
* or until it reaches the end of the content in the buffer (@s->len),
343
343
* whichever comes first.
344
344
*
345
+ * Returns:
345
346
* On success, it returns a positive number of the number of bytes
346
347
* it copied.
347
348
*
@@ -392,11 +393,11 @@ int seq_buf_to_user(struct seq_buf *s, char __user *ubuf, size_t start, int cnt)
392
393
* linebuf size is maximal length for one line.
393
394
* 32 * 3 - maximum bytes per line, each printed into 2 chars + 1 for
394
395
* separating space
395
- * 2 - spaces separating hex dump and ascii representation
396
- * 32 - ascii representation
396
+ * 2 - spaces separating hex dump and ASCII representation
397
+ * 32 - ASCII representation
397
398
* 1 - terminating '\0'
398
399
*
399
- * Returns zero on success, -1 on overflow
400
+ * Returns: zero on success, -1 on overflow.
400
401
*/
401
402
int seq_buf_hex_dump (struct seq_buf * s , const char * prefix_str , int prefix_type ,
402
403
int rowsize , int groupsize ,
0 commit comments