summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc/stats.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-18 04:50:46 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-18 04:50:46 -0800
commit2a0807bd546bdaeea6d8c50703540c51c81f9a2a (patch)
treee74f0f946a17cad14d86aabf5d28213a34c40439 /include/linux/sunrpc/stats.h
parentbbcc5fa8698595b500772dc17840772acd9f8f86 (diff)
[PATCH] kNFSd: convert NFS /proc interfaces to seq_file
From: NeilBrown <neilb@cse.unsw.edu.au> From: shemminger@osdl.org Sat Sep 6 09:19:50 2003 Date: Fri, 5 Sep 2003 16:19:30 -0700 Converts /proc/net/rpc/nfs and /proc/net/rpc/nfsd to use the simpler seq_file interface.
Diffstat (limited to 'include/linux/sunrpc/stats.h')
-rw-r--r--include/linux/sunrpc/stats.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/include/linux/sunrpc/stats.h b/include/linux/sunrpc/stats.h
index 6feb82ded752..6fa9781a67b0 100644
--- a/include/linux/sunrpc/stats.h
+++ b/include/linux/sunrpc/stats.h
@@ -48,14 +48,13 @@ void rpc_modcount(struct inode *, int);
#ifdef CONFIG_PROC_FS
struct proc_dir_entry * rpc_proc_register(struct rpc_stat *);
void rpc_proc_unregister(const char *);
-int rpc_proc_read(char *, char **, off_t, int,
- int *, void *);
void rpc_proc_zero(struct rpc_program *);
-struct proc_dir_entry * svc_proc_register(struct svc_stat *);
+struct proc_dir_entry * svc_proc_register(struct svc_stat *,
+ struct file_operations *);
void svc_proc_unregister(const char *);
-int svc_proc_read(char *, char **, off_t, int,
- int *, void *);
-void svc_proc_zero(struct svc_program *);
+
+void svc_seq_show(struct seq_file *,
+ const struct svc_stat *);
extern struct proc_dir_entry *proc_net_rpc;
@@ -63,13 +62,13 @@ extern struct proc_dir_entry *proc_net_rpc;
static inline struct proc_dir_entry *rpc_proc_register(struct rpc_stat *s) { return NULL; }
static inline void rpc_proc_unregister(const char *p) {}
-static inline int rpc_proc_read(char *a, char **b, off_t c, int d, int *e, void *f) { return 0; }
static inline void rpc_proc_zero(struct rpc_program *p) {}
-static inline struct proc_dir_entry *svc_proc_register(struct svc_stat *s) { return NULL; }
+static inline struct proc_dir_entry *svc_proc_register(struct svc_stat *s
+ struct file_operations *) { return NULL; }
static inline void svc_proc_unregister(const char *p) {}
-static inline int svc_proc_read(char *a, char **b, off_t c, int d, int *e, void *f) { return 0; }
-static inline void svc_proc_zero(struct svc_program *p) {}
+
+static inline void svc_seq_show(struct seq_file *, const struct svc_stat *) {}
#define proc_net_rpc NULL