cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

sysfs.h (1128B)


      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
      8struct rpc_sysfs_client {
      9	struct kobject kobject;
     10	struct net *net;
     11	struct rpc_clnt *clnt;
     12	struct rpc_xprt_switch *xprt_switch;
     13};
     14
     15struct rpc_sysfs_xprt_switch {
     16	struct kobject kobject;
     17	struct net *net;
     18	struct rpc_xprt_switch *xprt_switch;
     19	struct rpc_xprt *xprt;
     20};
     21
     22struct rpc_sysfs_xprt {
     23	struct kobject kobject;
     24	struct rpc_xprt *xprt;
     25	struct rpc_xprt_switch *xprt_switch;
     26};
     27
     28int rpc_sysfs_init(void);
     29void rpc_sysfs_exit(void);
     30
     31void rpc_sysfs_client_setup(struct rpc_clnt *clnt,
     32			    struct rpc_xprt_switch *xprt_switch,
     33			    struct net *net);
     34void rpc_sysfs_client_destroy(struct rpc_clnt *clnt);
     35void rpc_sysfs_xprt_switch_setup(struct rpc_xprt_switch *xprt_switch,
     36				 struct rpc_xprt *xprt, gfp_t gfp_flags);
     37void rpc_sysfs_xprt_switch_destroy(struct rpc_xprt_switch *xprt);
     38void rpc_sysfs_xprt_setup(struct rpc_xprt_switch *xprt_switch,
     39			  struct rpc_xprt *xprt, gfp_t gfp_flags);
     40void rpc_sysfs_xprt_destroy(struct rpc_xprt *xprt);
     41
     42#endif