stats.c (53846a21c1766326bb14ce8ab6e997a0c120675d) stats.c (99ac48f54a91d02140c497edc31dc57d4bc5c85d)
1/*
2 * linux/net/sunrpc/stats.c
3 *
4 * procfs-based user access to generic RPC statistics. The stats files
5 * reside in /proc/net/rpc.
6 *
7 * The read routines assume that the buffer passed in is just big enough.
8 * If you implement an RPC service that has its own stats routine which

--- 211 unchanged lines hidden (view full) ---

220 }
221}
222EXPORT_SYMBOL(rpc_print_iostats);
223
224/*
225 * Register/unregister RPC proc files
226 */
227static inline struct proc_dir_entry *
1/*
2 * linux/net/sunrpc/stats.c
3 *
4 * procfs-based user access to generic RPC statistics. The stats files
5 * reside in /proc/net/rpc.
6 *
7 * The read routines assume that the buffer passed in is just big enough.
8 * If you implement an RPC service that has its own stats routine which

--- 211 unchanged lines hidden (view full) ---

220 }
221}
222EXPORT_SYMBOL(rpc_print_iostats);
223
224/*
225 * Register/unregister RPC proc files
226 */
227static inline struct proc_dir_entry *
228do_register(const char *name, void *data, struct file_operations *fops)
228do_register(const char *name, void *data, const struct file_operations *fops)
229{
230 struct proc_dir_entry *ent;
231
232 rpc_proc_init();
233 dprintk("RPC: registering /proc/net/rpc/%s\n", name);
234
235 ent = create_proc_entry(name, 0, proc_net_rpc);
236 if (ent) {

--- 11 unchanged lines hidden (view full) ---

248
249void
250rpc_proc_unregister(const char *name)
251{
252 remove_proc_entry(name, proc_net_rpc);
253}
254
255struct proc_dir_entry *
229{
230 struct proc_dir_entry *ent;
231
232 rpc_proc_init();
233 dprintk("RPC: registering /proc/net/rpc/%s\n", name);
234
235 ent = create_proc_entry(name, 0, proc_net_rpc);
236 if (ent) {

--- 11 unchanged lines hidden (view full) ---

248
249void
250rpc_proc_unregister(const char *name)
251{
252 remove_proc_entry(name, proc_net_rpc);
253}
254
255struct proc_dir_entry *
256svc_proc_register(struct svc_stat *statp, struct file_operations *fops)
256svc_proc_register(struct svc_stat *statp, const struct file_operations *fops)
257{
258 return do_register(statp->program->pg_name, statp, fops);
259}
260
261void
262svc_proc_unregister(const char *name)
263{
264 remove_proc_entry(name, proc_net_rpc);

--- 26 unchanged lines hidden ---
257{
258 return do_register(statp->program->pg_name, statp, fops);
259}
260
261void
262svc_proc_unregister(const char *name)
263{
264 remove_proc_entry(name, proc_net_rpc);

--- 26 unchanged lines hidden ---