xref: /openbmc/linux/net/sunrpc/sysfs.h (revision 7f1005dd)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (c) 2020 Anna Schumaker <Anna.Schumaker@Netapp.com>
4  */
5 #ifndef __SUNRPC_SYSFS_H
6 #define __SUNRPC_SYSFS_H
7 
8 struct rpc_sysfs_xprt_switch {
9 	struct kobject kobject;
10 	struct net *net;
11 	struct rpc_xprt_switch *xprt_switch;
12 	struct rpc_xprt *xprt;
13 };
14 
15 struct rpc_sysfs_xprt {
16 	struct kobject kobject;
17 	struct rpc_xprt *xprt;
18 	struct rpc_xprt_switch *xprt_switch;
19 };
20 
21 int rpc_sysfs_init(void);
22 void rpc_sysfs_exit(void);
23 
24 void rpc_sysfs_client_setup(struct rpc_clnt *clnt,
25 			    struct rpc_xprt_switch *xprt_switch,
26 			    struct net *net);
27 void rpc_sysfs_client_destroy(struct rpc_clnt *clnt);
28 void rpc_sysfs_xprt_switch_setup(struct rpc_xprt_switch *xprt_switch,
29 				 struct rpc_xprt *xprt, gfp_t gfp_flags);
30 void rpc_sysfs_xprt_switch_destroy(struct rpc_xprt_switch *xprt);
31 void rpc_sysfs_xprt_setup(struct rpc_xprt_switch *xprt_switch,
32 			  struct rpc_xprt *xprt, gfp_t gfp_flags);
33 void rpc_sysfs_xprt_destroy(struct rpc_xprt *xprt);
34 
35 #endif
36