]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: add sysfs entry for device group
authorVlad Dogaru <ddvlad@rosedu.org>
Mon, 24 Jan 2011 03:37:29 +0000 (03:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jan 2011 07:23:28 +0000 (23:23 -0800)
commita512b92b3af4b03fc6834617a042dc85fbd4e34e
tree54bdb2b03bca25b5aa35ead52c5122707f0b9727
parent84c49d8c3e4abefb0a41a77b25aa37ebe8d6b743
net: add sysfs entry for device group

The group of a network device can be queried or changed from userspace
using sysfs.

For example, considering sysfs mounted in /sys, one can change the group
that interface lo belongs to:
echo 1 > /sys/class/net/lo/group

Signed-off-by: Vlad Dogaru <ddvlad@rosedu.org>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c