Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932730AbWCVVKb (ORCPT ); Wed, 22 Mar 2006 16:10:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932734AbWCVVKb (ORCPT ); Wed, 22 Mar 2006 16:10:31 -0500 Received: from omx1-ext.sgi.com ([192.48.179.11]:24787 "EHLO omx1.americas.sgi.com") by vger.kernel.org with ESMTP id S932730AbWCVVKb (ORCPT ); Wed, 22 Mar 2006 16:10:31 -0500 Message-ID: <4421BD35.7070702@sgi.com> Date: Wed, 22 Mar 2006 22:10:13 +0100 From: Jes Sorensen User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: Alan Stern CC: Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [patch -mm] notifier chain initialization References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 954 Lines: 26 Alan Stern wrote: >> The benefit is that one can use the FOO_NOTIFIER_INIT() macro for >> static initialization of a notifier chain. > > You probably mean _dynamic_ initialization of a notifier head. The > current code handles static initialization just fine. Actually I meant static, I have a notifier declared within a struct and a macro that initializes it at compile time - didn't work with the old code. But I also use it dynamically where this also benefits it. > There's nothing wrong with doing things like this. I didn't include > initialization macros originally simply because there aren't any > dynamically-initialized notifier heads in the kernel. There probably will be :) Cheers, Jes - 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/