Re: tun: add tun_flags, owner, group attributes in sysfs
From: David Woodhouse <dwmw2@infradead.org>
Date: 2009-05-09 22:27:56
From: David Woodhouse <dwmw2@infradead.org>
Date: 2009-05-09 22:27:56
On Sat, 2009-05-09 at 13:27 -0700, David Miller wrote:
From: David Woodhouse <dwmw2@infradead.org> Date: Mon, 04 May 2009 11:32:16 +0100quoted
I don't have to explicitly remove the files, do I? They go away naturally when the device is unregistered?I'm not so sure about this. I can't see anything in the drivers/base/core.c code that automatically deletes anything other than device groups and attributes.
Hm, I really do think the attributes go away automatically when the parent device does. If not, gianfar_sysfs.c and niu.c want fixing too -- and we should probably have a WARN_ON() in the sysfs code when it happens, if possible. I'll experiment (since I'm getting lost when I try to work it out by inspection). -- David Woodhouse Open Source Technology Centre David.Woodhouse@intel.com Intel Corporation