#ifndef RTRS_SRV_H
#define RTRS_SRV_H
#include <linux/device.h>
#include <linux/refcount.h>
#include <linux/percpu.h>
#include "rtrs-pri.h"
enum rtrs_srv_state { … };
struct rtrs_srv_stats_rdma_stats { … };
struct rtrs_srv_stats { … };
struct rtrs_srv_con { … };
struct rtrs_srv_op { … };
struct rtrs_srv_mr { … };
struct rtrs_srv_path { … };
static inline struct rtrs_srv_path *to_srv_path(struct rtrs_path *s)
{ … }
struct rtrs_srv_sess { … };
struct rtrs_srv_ctx { … };
struct rtrs_srv_ib_ctx { … };
extern const struct class rtrs_dev_class;
void close_path(struct rtrs_srv_path *srv_path);
static inline void rtrs_srv_update_rdma_stats(struct rtrs_srv_stats *s,
size_t size, int d)
{ … }
int rtrs_srv_reset_rdma_stats(struct rtrs_srv_stats *stats, bool enable);
ssize_t rtrs_srv_stats_rdma_to_str(struct rtrs_srv_stats *stats, char *page);
int rtrs_srv_reset_all_stats(struct rtrs_srv_stats *stats, bool enable);
ssize_t rtrs_srv_reset_all_help(struct rtrs_srv_stats *stats,
char *page, size_t len);
int rtrs_srv_create_path_files(struct rtrs_srv_path *srv_path);
void rtrs_srv_destroy_path_files(struct rtrs_srv_path *srv_path);
#endif