XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions
seq_file.h File Reference
#include <linux/kernel.h>
#include <linux/string.h>
Include dependency graph for seq_file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  seq_file
 
struct  seq_operations
 

Macros

#define DEFINE_SHOW_ATTRIBUTE(__name)
 

Functions

void seq_printf (const void *m, const char *fmt,...)
 
void seq_puts (const void *m, const char *s)
 
long seq_read (const void *m, char *buf, unsigned long count, long long *ppos)
 
long seq_lseek (const void *m, long off, int whence)
 
int single_open (struct file *file, int(*show)(struct seq_file *, void *), void *data)
 
int single_release (struct inode *inode, struct file *file)
 

Macro Definition Documentation

◆ DEFINE_SHOW_ATTRIBUTE

#define DEFINE_SHOW_ATTRIBUTE (   __name)
Value:
static int __name##_open(struct inode* inode, struct file* file) \
{ \
(void)inode; \
return single_open(file, __name##_show, NULL); \
} \
static const struct file_operations __name##_fops = { \
.open = __name##_open, \
.read = seq_read, \
.llseek = seq_lseek, \
.release = single_release, \
}
#define NULL
Definition actypes.h:561
#define THIS_MODULE
Definition module.h:110
long seq_lseek(const void *m, long off, int whence)
int single_open(struct file *file, int(*show)(struct seq_file *, void *), void *data)
int single_release(struct inode *inode, struct file *file)
long seq_read(const void *m, char *buf, unsigned long count, long long *ppos)
Definition fs.h:67
struct module * owner
Definition fs.h:68
Definition fs.h:142
Definition fs.h:183

Function Documentation

◆ seq_lseek()

long seq_lseek ( const void *  m,
long  off,
int  whence 
)

◆ seq_printf()

void seq_printf ( const void *  m,
const char *  fmt,
  ... 
)

◆ seq_puts()

void seq_puts ( const void *  m,
const char *  s 
)

◆ seq_read()

long seq_read ( const void *  m,
char *  buf,
unsigned long  count,
long long *  ppos 
)

◆ single_open()

int single_open ( struct file *  file,
int(*)(struct seq_file *, void *)  show,
void *  data 
)

◆ single_release()

int single_release ( struct inode *  inode,
struct file *  file 
)