diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2003-01-05 03:42:54 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-01-05 03:42:54 -0800 |
| commit | 007f73838678ede6422b8973a505ed81d893ba3e (patch) | |
| tree | b185e75c14b29acb62e3b49846fd47c3244be4e3 /include | |
| parent | f5a99512eb6045812309fcecb80c7480f714730d (diff) | |
[PATCH] knfsd: Allow rpcsvc caches to provide a 'cache_show' method
This provides a /proc/sunrpc/*/content seq_file for caches to display
their content.
This code is based on the code for /proc/fs/nfs/exports
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sunrpc/cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 79d893bffdc3..a3cdc080dd85 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h @@ -78,6 +78,11 @@ struct cache_detail { int (*cache_parse)(struct cache_detail *, char *buf, int len); + int (*cache_show)(struct seq_file *m, + struct cache_detail *cd, + struct cache_head *h, + char *pbuf); + /* fields below this comment are for internal use * and should not be touched by cache owners */ |
