*/
#include <linux/fs.h>
+#include <linux/module.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
return 0;
}
+EXPORT_SYMBOL(seq_open);
+
/**
* seq_read - ->read() method for sequential files.
* @file, @buf, @size, @ppos: see file_operations method
goto Done;
}
+EXPORT_SYMBOL(seq_read);
+
static int traverse(struct seq_file *m, loff_t offset)
{
loff_t pos = 0;
return retval;
}
+EXPORT_SYMBOL(seq_lseek);
+
/**
* seq_release - free the structures associated with sequential file.
* @file: file in question
return 0;
}
+EXPORT_SYMBOL(seq_release);
+
/**
* seq_escape - print string into buffer, escaping some characters
* @m: target buffer
return 0;
}
+EXPORT_SYMBOL(seq_escape);
+
int seq_printf(struct seq_file *m, const char *f, ...)
{
va_list args;
return -1;
}
+EXPORT_SYMBOL(seq_printf);
+
int seq_path(struct seq_file *m,
- struct vfsmount *mnt, struct dentry *dentry,
- char *esc)
+ struct vfsmount *mnt, struct dentry *dentry,
+ char *esc)
{
if (m->count < m->size) {
char *s = m->buf + m->count;
return -1;
}
+EXPORT_SYMBOL(seq_path);
+
static void *single_start(struct seq_file *p, loff_t *pos)
{
return NULL + (*pos == 0);
{
}
-int single_open(struct file *file, int (*show)(struct seq_file *, void*), void *data)
+int single_open(struct file *file, int (*show)(struct seq_file *, void *),
+ void *data)
{
struct seq_operations *op = kmalloc(sizeof(*op), GFP_KERNEL);
int res = -ENOMEM;
return res;
}
+EXPORT_SYMBOL(single_open);
+
int single_release(struct inode *inode, struct file *file)
{
struct seq_operations *op = ((struct seq_file *)file->private_data)->op;
return res;
}
+EXPORT_SYMBOL(single_release);
+
int seq_release_private(struct inode *inode, struct file *file)
{
struct seq_file *seq = file->private_data;
return seq_release(inode, file);
}
+EXPORT_SYMBOL(seq_release_private);
#include <linux/uio.h>
#include <linux/tty.h>
#include <linux/in6.h>
-#include <linux/seq_file.h>
#include <linux/binfmts.h>
#include <linux/namei.h>
#include <linux/buffer_head.h>
EXPORT_SYMBOL(cap_bset);
EXPORT_SYMBOL(daemonize);
EXPORT_SYMBOL(csum_partial); /* for networking and md */
-EXPORT_SYMBOL(seq_escape);
-EXPORT_SYMBOL(seq_printf);
-EXPORT_SYMBOL(seq_path);
-EXPORT_SYMBOL(seq_open);
-EXPORT_SYMBOL(seq_release);
-EXPORT_SYMBOL(seq_read);
-EXPORT_SYMBOL(seq_lseek);
-EXPORT_SYMBOL(single_open);
-EXPORT_SYMBOL(single_release);
-EXPORT_SYMBOL(seq_release_private);
/* Miscellaneous access points */
EXPORT_SYMBOL(si_meminfo);