162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2020 Anna Schumaker <Anna.Schumaker@Netapp.com>
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci#ifndef __SUNRPC_SYSFS_H
662306a36Sopenharmony_ci#define __SUNRPC_SYSFS_H
762306a36Sopenharmony_ci
862306a36Sopenharmony_cistruct rpc_sysfs_xprt_switch {
962306a36Sopenharmony_ci	struct kobject kobject;
1062306a36Sopenharmony_ci	struct net *net;
1162306a36Sopenharmony_ci	struct rpc_xprt_switch *xprt_switch;
1262306a36Sopenharmony_ci	struct rpc_xprt *xprt;
1362306a36Sopenharmony_ci};
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_cistruct rpc_sysfs_xprt {
1662306a36Sopenharmony_ci	struct kobject kobject;
1762306a36Sopenharmony_ci	struct rpc_xprt *xprt;
1862306a36Sopenharmony_ci	struct rpc_xprt_switch *xprt_switch;
1962306a36Sopenharmony_ci};
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciint rpc_sysfs_init(void);
2262306a36Sopenharmony_civoid rpc_sysfs_exit(void);
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_civoid rpc_sysfs_client_setup(struct rpc_clnt *clnt,
2562306a36Sopenharmony_ci			    struct rpc_xprt_switch *xprt_switch,
2662306a36Sopenharmony_ci			    struct net *net);
2762306a36Sopenharmony_civoid rpc_sysfs_client_destroy(struct rpc_clnt *clnt);
2862306a36Sopenharmony_civoid rpc_sysfs_xprt_switch_setup(struct rpc_xprt_switch *xprt_switch,
2962306a36Sopenharmony_ci				 struct rpc_xprt *xprt, gfp_t gfp_flags);
3062306a36Sopenharmony_civoid rpc_sysfs_xprt_switch_destroy(struct rpc_xprt_switch *xprt);
3162306a36Sopenharmony_civoid rpc_sysfs_xprt_setup(struct rpc_xprt_switch *xprt_switch,
3262306a36Sopenharmony_ci			  struct rpc_xprt *xprt, gfp_t gfp_flags);
3362306a36Sopenharmony_civoid rpc_sysfs_xprt_destroy(struct rpc_xprt *xprt);
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci#endif
36