stats.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) stats.c (d9dda78bad879595d8c4220a067fc029d6484a16)
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

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

59 vers->procs[j].p_count);
60 seq_putc(seq, '\n');
61 }
62 return 0;
63}
64
65static int rpc_proc_open(struct inode *inode, struct file *file)
66{
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

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

59 vers->procs[j].p_count);
60 seq_putc(seq, '\n');
61 }
62 return 0;
63}
64
65static int rpc_proc_open(struct inode *inode, struct file *file)
66{
67 return single_open(file, rpc_proc_show, PDE(inode)->data);
67 return single_open(file, rpc_proc_show, PDE_DATA(inode));
68}
69
70static const struct file_operations rpc_proc_fops = {
71 .owner = THIS_MODULE,
72 .open = rpc_proc_open,
73 .read = seq_read,
74 .llseek = seq_lseek,
75 .release = single_release,

--- 207 unchanged lines hidden ---
68}
69
70static const struct file_operations rpc_proc_fops = {
71 .owner = THIS_MODULE,
72 .open = rpc_proc_open,
73 .read = seq_read,
74 .llseek = seq_lseek,
75 .release = single_release,

--- 207 unchanged lines hidden ---