Re: [PATCH] sysfs: add filter function to groups

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Cornelia Huck
Date: Monday, October 29, 2007 - 10:18 am

On Mon, 29 Oct 2007 11:57:51 -0500,
James Bottomley <James.Bottomley@SteelEye.com> wrote:


Can you determine which subset of the attributes you want just before
actually creating the group? Then you could do something like:

create_group(grp, kobj)
{
	grp->update_creation_mask(kobj);
	actually_create_attrs();
}


I'd agree that using the attribute is better in this function.


Well, you don't only stop the visibility, but the creation of the
attribute, so perhaps (*creation_filter)?
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] sysfs: add filter function to groups, James Bottomley, (Mon Oct 29, 8:16 am)
Re: [PATCH] sysfs: add filter function to groups, Kay Sievers, (Mon Oct 29, 9:54 am)
Re: [PATCH] sysfs: add filter function to groups, James Bottomley, (Mon Oct 29, 9:57 am)
Re: [PATCH] sysfs: add filter function to groups, Cornelia Huck, (Mon Oct 29, 10:18 am)
Re: [PATCH] sysfs: add filter function to groups, James Bottomley, (Mon Oct 29, 10:24 am)
Re: [PATCH] sysfs: add filter function to groups, Kay Sievers, (Mon Oct 29, 10:27 am)
Re: [PATCH] sysfs: add filter function to groups, Jeff Garzik, (Mon Oct 29, 10:27 am)
Re: [PATCH] sysfs: add filter function to groups, James Bottomley, (Mon Oct 29, 10:28 am)
Re: [PATCH] sysfs: add filter function to groups, James Bottomley, (Mon Oct 29, 10:29 am)
Re: [PATCH] sysfs: add filter function to groups, Kay Sievers, (Mon Oct 29, 10:43 am)
Re: [PATCH] sysfs: add filter function to groups, Stefan Richter, (Mon Oct 29, 10:58 am)
Re: [PATCH] sysfs: add filter function to groups, James Bottomley, (Mon Oct 29, 11:12 am)
Re: [PATCH] sysfs: add filter function to groups, Cornelia Huck, (Tue Oct 30, 1:55 am)
Re: [PATCH] sysfs: add filter function to groups, Cornelia Huck, (Tue Oct 30, 2:00 am)
Re: [PATCH] sysfs: add filter function to groups, James Bottomley, (Tue Oct 30, 11:25 am)
Re: [PATCH] sysfs: add filter function to groups, Stefan Richter, (Tue Oct 30, 12:31 pm)
Re: [PATCH] sysfs: add filter function to groups, Kay Sievers, (Tue Oct 30, 12:47 pm)
Re: [PATCH] sysfs: add filter function to groups, Mark M. Hoffman, (Tue Oct 30, 5:40 pm)
Re: [PATCH] sysfs: add filter function to groups, Kay Sievers, (Tue Oct 30, 7:01 pm)
Re: [PATCH] sysfs: add filter function to groups, Greg KH, (Tue Oct 30, 8:55 pm)
Re: [PATCH] sysfs: add filter function to groups, Cornelia Huck, (Wed Oct 31, 2:41 am)
Re: [PATCH] sysfs: add filter function to groups, Stefan Richter, (Wed Oct 31, 2:52 am)
Re: [PATCH] sysfs: add filter function to groups, Cornelia Huck, (Wed Oct 31, 3:20 am)
Re: [PATCH] sysfs: add filter function to groups, Stefan Richter, (Wed Oct 31, 3:37 am)
Re: [PATCH] sysfs: add filter function to groups, Mark M. Hoffman, (Wed Oct 31, 4:28 am)
Re: [PATCH] sysfs: add filter function to groups, Cornelia Huck, (Wed Oct 31, 5:19 am)
Re: [PATCH] sysfs: add filter function to groups, James Bottomley, (Wed Oct 31, 7:38 am)
Re: [PATCH] sysfs: add filter function to groups, Greg KH, (Wed Oct 31, 10:29 am)
Re: [PATCH] sysfs: add filter function to groups, James Bottomley, (Sun Nov 4, 7:12 am)
Re: [PATCH] sysfs: add filter function to groups, Greg KH, (Sun Nov 4, 12:06 pm)