#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/export.h>
#include <net/net_namespace.h>
#include <net/sock.h>
#include <net/x25.h>
#ifdef CONFIG_PROC_FS
static void *x25_seq_route_start(struct seq_file *seq, loff_t *pos)
__acquires(x25_route_list_lock)
{ … }
static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos)
{ … }
static void x25_seq_route_stop(struct seq_file *seq, void *v)
__releases(x25_route_list_lock)
{ … }
static int x25_seq_route_show(struct seq_file *seq, void *v)
{ … }
static void *x25_seq_socket_start(struct seq_file *seq, loff_t *pos)
__acquires(x25_list_lock)
{ … }
static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos)
{ … }
static void x25_seq_socket_stop(struct seq_file *seq, void *v)
__releases(x25_list_lock)
{ … }
static int x25_seq_socket_show(struct seq_file *seq, void *v)
{ … }
static void *x25_seq_forward_start(struct seq_file *seq, loff_t *pos)
__acquires(x25_forward_list_lock)
{ … }
static void *x25_seq_forward_next(struct seq_file *seq, void *v, loff_t *pos)
{ … }
static void x25_seq_forward_stop(struct seq_file *seq, void *v)
__releases(x25_forward_list_lock)
{ … }
static int x25_seq_forward_show(struct seq_file *seq, void *v)
{ … }
static const struct seq_operations x25_seq_route_ops = …;
static const struct seq_operations x25_seq_socket_ops = …;
static const struct seq_operations x25_seq_forward_ops = …;
int __init x25_proc_init(void)
{ … }
void __exit x25_proc_exit(void)
{ … }
#else
int __init x25_proc_init(void)
{
return 0;
}
void __exit x25_proc_exit(void)
{
}
#endif