Re: [PATCH] drivers/base: Use attribute groups to create sysfsmemory files

From: Greg Kroah-Hartman
Date: Tue May 21 2013 - 12:33:18 EST


On Wed, May 08, 2013 at 11:09:48AM -0500, Nathan Fontenot wrote:
> Update the sysfs memory code to create/delete files at the time of device
> and subsystem registration.
>
> The current code creates files in the root memory directory explicitly through
> the use of init_* routines. The files for each memory block are created and
> deleted explicitly using the mem_[create|delete]_simple_file macros.
>
> This patch creates attribute groups for the memory root files and files in
> each memory block directory so that they are created and deleted implicitly
> at subsys and device register and unregister time.
>
> This did necessitate moving the register_memory() and unregister_memory()
> routines in the file. There are no changes to unregister_memory, the
> register_memory routine is only updated to set the dev.groups field.
>
> Signed-off-by: Nathan Fontenot <nfont@xxxxxxxxxxxxxxxxxx>
>
> Please cc me on responses/comments.
> ---
> drivers/base/memory.c | 163 ++++++++++++++++++++++----------------------------
> 1 file changed, 72 insertions(+), 91 deletions(-)

This doesn't seem to apply to 3.10-rc2, can you refresh it and resend it
so that I can apply it?

thanks,

greg k-h
--
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/