Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753763AbZJTFv7 (ORCPT ); Tue, 20 Oct 2009 01:51:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750781AbZJTFv6 (ORCPT ); Tue, 20 Oct 2009 01:51:58 -0400 Received: from palinux.external.hp.com ([192.25.206.14]:42448 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750771AbZJTFv5 (ORCPT ); Tue, 20 Oct 2009 01:51:57 -0400 Date: Mon, 19 Oct 2009 23:52:02 -0600 From: Matthew Wilcox To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Jesse Barnes , linux-pci@vger.kernel.org Subject: Re: [PATCH 0/3] Allow sysfs to be dynamically populated Message-ID: <20091020055202.GG29158@parisc-linux.org> References: <20091020054740.GC29158@parisc-linux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091020054740.GC29158@parisc-linux.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1468 Lines: 30 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." -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/