lkml.org 
[lkml]   [2009]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/3] Allow sysfs to be dynamically populated
On Mon, Oct 19, 2009 at 11:47:40PM -0600, Matthew Wilcox wrote:
> The second and third patches offer progressively more flexibility to
> dynamically construct the contents of sysfs directories. The second
> patch delays the allocation of sysfs_dirents until the contents of
> the directory is requested. This functionality is only used by the
> attribute_groups in that patch, but could (in principle) be extended to
> other directory providers.
>
> The third patch extends this to permit attribute groups to be dynamically
> constructed before the directory they're in is populated. I also add a
> user for this; the much-requested ability to display the MSI-X vectors
> in use by a device.
>
> Both patches also deconstruct the directories / attribute groups when the
> dentry of the directory goes out of cache.

Oh, I meant to say, this is enough to get my laptop to boot. I couldn't
swear to the non-existance of races, or the missing of features ... lots
of care needed with this patch, IMO.

--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."


\
 
 \ /
  Last update: 2009-10-20 07:55    [W:0.098 / U:0.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site