#include <linux/string.h>
#include <linux/device.h>
#include "snic.h"
static ssize_t
snic_show_sym_name(struct device *dev,
struct device_attribute *attr,
char *buf)
{ … }
static ssize_t
snic_show_state(struct device *dev,
struct device_attribute *attr,
char *buf)
{ … }
static ssize_t
snic_show_drv_version(struct device *dev,
struct device_attribute *attr,
char *buf)
{ … }
static ssize_t
snic_show_link_state(struct device *dev,
struct device_attribute *attr,
char *buf)
{ … }
static DEVICE_ATTR(snic_sym_name, S_IRUGO, snic_show_sym_name, NULL);
static DEVICE_ATTR(snic_state, S_IRUGO, snic_show_state, NULL);
static DEVICE_ATTR(drv_version, S_IRUGO, snic_show_drv_version, NULL);
static DEVICE_ATTR(link_state, S_IRUGO, snic_show_link_state, NULL);
static struct attribute *snic_host_attrs[] = …;
static const struct attribute_group snic_host_attr_group = …;
const struct attribute_group *snic_host_groups[] = …;