[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1241449085.6126.117.camel@macbook.infradead.org>
Date: Mon, 04 May 2009 15:58:05 +0100
From: David Woodhouse <dwmw2@...radead.org>
To: Stephen Hemminger <shemminger@...tta.com>
Cc: netdev@...r.kernel.org, Mark McLoughlin <markmc@...hat.com>
Subject: Re: tun: add tun_flags, owner, group attributes in sysfs
On Mon, 2009-05-04 at 07:47 -0700, Stephen Hemminger wrote:
> Netlink please not sysfs.
That seems like overkill in this case.
> also, any sysfs attributes have to handle unregistration issues.
> ( sleep 900; read owner ) </sys/class/net/tun0/owner &
> rmmod tun
That gets handled for you automatically...
[root@...ersburg ~]# ( sleep 900 ; read owner; echo $owner ) < /sys/class/net/tun0/owner &
[1] 4728
[root@...ersburg ~]# ./ip tuntap del tun0 mode tun
[root@...ersburg ~]# rmmod tun
[root@...ersburg ~]# killall sleep
-bash: line 28: 4729 Terminated sleep 900
[root@...ersburg ~]# -bash: line 28: read: read error: 0: No such device
--
dwmw2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists