port_attribute
ssize_t (*show)(struct mlx4_port *, struct port_attribute *, char *buf);
ssize_t (*store)(struct mlx4_port *, struct port_attribute *,
struct port_attribute *port_attr =
container_of(attr, struct port_attribute, attr);
struct port_attribute *port_attr =
container_of(attr, struct port_attribute, attr);
struct port_attribute attr;
static ssize_t show_port_pkey(struct mlx4_port *p, struct port_attribute *attr,
static ssize_t store_port_pkey(struct mlx4_port *p, struct port_attribute *attr,
struct port_attribute *attr, char *buf)
struct port_attribute *, char *buf),
ssize_t (*store)(struct mlx4_port *, struct port_attribute *,