static ssize_t bridge_id_show(struct device *d, struct device_attribute *attr, char *buf) { return br_show_bridge_id(buf, &to_bridge(d)->bridge_id); }
static ssize_t root_id_show(struct device *d, struct device_attribute *attr, char *buf) { return br_show_bridge_id(buf, &to_bridge(d)->designated_root); }
static ssize_t show_bridge_id(struct class_device *cd, char *buf) { return br_show_bridge_id(buf, &to_bridge(cd)->bridge_id); }
static ssize_t show_designated_bridge(struct net_bridge_port *p, char *buf) { return br_show_bridge_id(buf, &p->designated_bridge); }
static ssize_t show_root_id(struct class_device *cd, char *buf) { return br_show_bridge_id(buf, &to_bridge(cd)->designated_root); }