Re: [PATCH] net: show stopped status in sysfs

From: David Miller
Date: Mon May 03 2010 - 18:05:26 EST


From: "Michael S. Tsirkin" <mst@xxxxxxxxxx>
Date: Tue, 4 May 2010 00:24:25 +0300

> @@ -303,6 +313,7 @@ static struct device_attribute net_class_attributes[] = {
> __ATTR(address, S_IRUGO, show_address, NULL),
> __ATTR(broadcast, S_IRUGO, show_broadcast, NULL),
> __ATTR(carrier, S_IRUGO, show_carrier, NULL),
> + __ATTR(carrier, S_IRUGO, show_stopped, NULL),

Besides the fact that you have to publish this as a per-queue attribute,
you're also erroneously naming it 'carrier' here.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/