diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-18 07:07:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-18 07:07:21 -0400 |
commit | de05c557b24c7dffc6d392e3db120cf11c9f6ae7 (patch) | |
tree | d1d6fe1323657afd7d416c6af8a62d6a9e1e1e66 /include/linux/seq_file_net.h | |
parent | 60bdde95807e982a824be9cfdd35055cc721a88a (diff) |
proc: consolidate per-net single_open callers
There are already 7 of them - time to kill some duplicate code.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/seq_file_net.h')
-rw-r--r-- | include/linux/seq_file_net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/seq_file_net.h b/include/linux/seq_file_net.h index 4ac52542a563..87dcc0ecf6eb 100644 --- a/include/linux/seq_file_net.h +++ b/include/linux/seq_file_net.h | |||
@@ -14,6 +14,8 @@ struct seq_net_private { | |||
14 | 14 | ||
15 | int seq_open_net(struct inode *, struct file *, | 15 | int seq_open_net(struct inode *, struct file *, |
16 | const struct seq_operations *, int); | 16 | const struct seq_operations *, int); |
17 | int single_open_net(struct inode *, struct file *file, | ||
18 | int (*show)(struct seq_file *, void *)); | ||
17 | int seq_release_net(struct inode *, struct file *); | 19 | int seq_release_net(struct inode *, struct file *); |
18 | static inline struct net *seq_file_net(struct seq_file *seq) | 20 | static inline struct net *seq_file_net(struct seq_file *seq) |
19 | { | 21 | { |