#ifndef _LINUX_SEQ_BUF_H
#define _LINUX_SEQ_BUF_H
#include <linux/bug.h>
#include <linux/minmax.h>
#include <linux/seq_file.h>
#include <linux/types.h>
struct seq_buf { … };
#define DECLARE_SEQ_BUF(NAME, SIZE) …
static inline void seq_buf_clear(struct seq_buf *s)
{ … }
static inline void
seq_buf_init(struct seq_buf *s, char *buf, unsigned int size)
{ … }
static inline bool
seq_buf_has_overflowed(struct seq_buf *s)
{ … }
static inline void
seq_buf_set_overflow(struct seq_buf *s)
{ … }
static inline unsigned int
seq_buf_buffer_left(struct seq_buf *s)
{ … }
static inline unsigned int seq_buf_used(struct seq_buf *s)
{ … }
static inline const char *seq_buf_str(struct seq_buf *s)
{ … }
static inline size_t seq_buf_get_buf(struct seq_buf *s, char **bufp)
{ … }
static inline void seq_buf_commit(struct seq_buf *s, int num)
{ … }
extern __printf(2, 3)
int seq_buf_printf(struct seq_buf *s, const char *fmt, ...);
extern __printf(2, 0)
int seq_buf_vprintf(struct seq_buf *s, const char *fmt, va_list args);
extern int seq_buf_print_seq(struct seq_file *m, struct seq_buf *s);
extern int seq_buf_to_user(struct seq_buf *s, char __user *ubuf,
size_t start, int cnt);
extern int seq_buf_puts(struct seq_buf *s, const char *str);
extern int seq_buf_putc(struct seq_buf *s, unsigned char c);
extern int seq_buf_putmem(struct seq_buf *s, const void *mem, unsigned int len);
extern int seq_buf_putmem_hex(struct seq_buf *s, const void *mem,
unsigned int len);
extern int seq_buf_path(struct seq_buf *s, const struct path *path, const char *esc);
extern int seq_buf_hex_dump(struct seq_buf *s, const char *prefix_str,
int prefix_type, int rowsize, int groupsize,
const void *buf, size_t len, bool ascii);
#ifdef CONFIG_BINARY_PRINTF
extern int
seq_buf_bprintf(struct seq_buf *s, const char *fmt, const u32 *binary);
#endif
void seq_buf_do_printk(struct seq_buf *s, const char *lvl);
#endif