Re: [RFC] Updates to sysfs_create_subdir()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 23, 2005 at 01:56:29PM -0800, Patrick Mochel wrote:
> 
> The patch below addresses this issue by parsing the subdirectory name and
> creating any parent directories delineated by a '/'.

Generally I never liked parsing stuff like this in the kernel (proc and
devfs both do this).  That being said, I do see the need to make subdirs
like this easier.

But what about cleanups?  If I create an attribute group "foo/baz/x/" and
then remove it, will the subdirectories get cleaned up too?  What about
if I had created a group "foo/baz/y/" after the "x" one?  Or just
"foo/baz"?

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux