diff options
Diffstat (limited to 'include/linux/seq_file.h')
-rw-r--r-- | include/linux/seq_file.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index ebbc02b325fc..648dfeb444db 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h | |||
@@ -63,5 +63,18 @@ extern struct list_head *seq_list_start_head(struct list_head *head, | |||
63 | extern struct list_head *seq_list_next(void *v, struct list_head *head, | 63 | extern struct list_head *seq_list_next(void *v, struct list_head *head, |
64 | loff_t *ppos); | 64 | loff_t *ppos); |
65 | 65 | ||
66 | struct net; | ||
67 | struct seq_net_private { | ||
68 | struct net *net; | ||
69 | }; | ||
70 | |||
71 | int seq_open_net(struct inode *, struct file *, | ||
72 | const struct seq_operations *, int); | ||
73 | int seq_release_net(struct inode *, struct file *); | ||
74 | static inline struct net *seq_file_net(struct seq_file *seq) | ||
75 | { | ||
76 | return ((struct seq_net_private *)seq->private)->net; | ||
77 | } | ||
78 | |||
66 | #endif | 79 | #endif |
67 | #endif | 80 | #endif |