lkml.org 
[lkml]   [2010]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [4/12] SYSFS: Add sysfs_add/remove_files utility functions
On Tue, Jan 05, 2010 at 12:48:01PM +0100, Andi Kleen wrote:
>
> Adding/Removing a whole array of attributes is very common. Add a standard
> utility function to do this with a simple function call, instead of
> requiring drivers to open code this.

Hm, that is what the sysfs_create_group(), sysfs_update_group(), and
sysfs_remove_group() functions are for. We don't need to add any new
functions that do the same thing, right?

thanks,

greg k-h


\
 
 \ /
  Last update: 2010-01-05 16:05    [W:0.086 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site