Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/seq_file.h
Context not available. | |||||
#include <linux/types.h> | #include <linux/types.h> | ||||
#include <linux/fs.h> | #include <linux/fs.h> | ||||
#include <sys/sbuf.h> | |||||
#undef file | #undef file | ||||
#define inode vnode | #define inode vnode | ||||
MALLOC_DECLARE(M_LSEQ); | |||||
#define DEFINE_SHOW_ATTRIBUTE(__name) \ | #define DEFINE_SHOW_ATTRIBUTE(__name) \ | ||||
static int __name ## _open(struct inode *inode, struct linux_file *file) \ | static int __name ## _open(struct inode *inode, struct linux_file *file) \ | ||||
{ \ | { \ | ||||
Context not available. | |||||
.release = single_release, \ | .release = single_release, \ | ||||
} | } | ||||
struct seq_operations; | |||||
struct seq_file { | struct seq_file { | ||||
struct sbuf *buf; | struct sbuf *buf; | ||||
const struct seq_operations *op; | const struct seq_operations *op; | ||||
const struct linux_file *file; | const struct linux_file *file; | ||||
void *private; | void *private; | ||||
Context not available. | |||||
int single_open(struct linux_file *, int (*)(struct seq_file *, void *), void *); | int single_open(struct linux_file *, int (*)(struct seq_file *, void *), void *); | ||||
int single_release(struct inode *, struct linux_file *); | int single_release(struct inode *, struct linux_file *); | ||||
#define seq_printf(m, fmt, ...) sbuf_printf((m)->buf, (fmt), ##__VA_ARGS__) | void seq_vprintf(struct seq_file *m, const char *fmt, va_list args); | ||||
void seq_printf(struct seq_file *m, const char *fmt, ...); | |||||
#define seq_puts(m, str) sbuf_printf((m)->buf, str) | #define seq_puts(m, str) sbuf_printf((m)->buf, str) | ||||
#define seq_putc(m, str) sbuf_putc((m)->buf, str) | #define seq_putc(m, str) sbuf_putc((m)->buf, str) | ||||
Context not available. |