diff options
author | Olga Kornievskaia <kolga@netapp.com> | 2021-06-08 21:59:12 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-07-08 20:03:23 +0200 |
commit | c5a382ebdbdaac27ec109993e29f9045d70297f2 (patch) | |
tree | 771a77766af2337b30bb00b3eb8d4b5e2dc60997 /net/sunrpc/sysfs.h | |
parent | sunrpc: Create a client/ subdirectory in the sunrpc sysfs (diff) | |
download | linux-c5a382ebdbdaac27ec109993e29f9045d70297f2.tar.xz linux-c5a382ebdbdaac27ec109993e29f9045d70297f2.zip |
sunrpc: Create per-rpc_clnt sysfs kobjects
These will eventually have files placed under them for sysfs operations.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sunrpc/sysfs.h')
-rw-r--r-- | net/sunrpc/sysfs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/sunrpc/sysfs.h b/net/sunrpc/sysfs.h index f181c650aab8..c46afc848993 100644 --- a/net/sunrpc/sysfs.h +++ b/net/sunrpc/sysfs.h @@ -5,7 +5,15 @@ #ifndef __SUNRPC_SYSFS_H #define __SUNRPC_SYSFS_H +struct rpc_sysfs_client { + struct kobject kobject; + struct net *net; +}; + int rpc_sysfs_init(void); void rpc_sysfs_exit(void); +void rpc_sysfs_client_setup(struct rpc_clnt *clnt, struct net *net); +void rpc_sysfs_client_destroy(struct rpc_clnt *clnt); + #endif |