#undef pr_fmt
#define pr_fmt(fmt) …
#include "rtrs-pri.h"
#include "rtrs-srv.h"
#include "rtrs-log.h"
static void rtrs_srv_release(struct kobject *kobj)
{ … }
static struct kobj_type ktype = …;
static ssize_t rtrs_srv_disconnect_show(struct kobject *kobj,
struct kobj_attribute *attr, char *buf)
{ … }
static ssize_t rtrs_srv_disconnect_store(struct kobject *kobj,
struct kobj_attribute *attr,
const char *buf, size_t count)
{ … }
static struct kobj_attribute rtrs_srv_disconnect_attr = …;
static ssize_t rtrs_srv_hca_port_show(struct kobject *kobj,
struct kobj_attribute *attr,
char *page)
{ … }
static struct kobj_attribute rtrs_srv_hca_port_attr = …;
static ssize_t rtrs_srv_hca_name_show(struct kobject *kobj,
struct kobj_attribute *attr,
char *page)
{ … }
static struct kobj_attribute rtrs_srv_hca_name_attr = …;
static ssize_t rtrs_srv_src_addr_show(struct kobject *kobj,
struct kobj_attribute *attr,
char *page)
{ … }
static struct kobj_attribute rtrs_srv_src_addr_attr = …;
static ssize_t rtrs_srv_dst_addr_show(struct kobject *kobj,
struct kobj_attribute *attr,
char *page)
{ … }
static struct kobj_attribute rtrs_srv_dst_addr_attr = …;
static struct attribute *rtrs_srv_path_attrs[] = …;
static const struct attribute_group rtrs_srv_path_attr_group = …;
STAT_ATTR(…);
static struct attribute *rtrs_srv_stats_attrs[] = …;
static const struct attribute_group rtrs_srv_stats_attr_group = …;
static int rtrs_srv_create_once_sysfs_root_folders(struct rtrs_srv_path *srv_path)
{ … }
static void
rtrs_srv_destroy_once_sysfs_root_folders(struct rtrs_srv_path *srv_path)
{ … }
static void rtrs_srv_path_stats_release(struct kobject *kobj)
{ … }
static struct kobj_type ktype_stats = …;
static int rtrs_srv_create_stats_files(struct rtrs_srv_path *srv_path)
{ … }
int rtrs_srv_create_path_files(struct rtrs_srv_path *srv_path)
{ … }
void rtrs_srv_destroy_path_files(struct rtrs_srv_path *srv_path)
{ … }