Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751441AbWCWRyv (ORCPT ); Thu, 23 Mar 2006 12:54:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751474AbWCWRyv (ORCPT ); Thu, 23 Mar 2006 12:54:51 -0500 Received: from mga03.intel.com ([143.182.124.21]:49749 "EHLO azsmga101-1.ch.intel.com") by vger.kernel.org with ESMTP id S1751441AbWCWRyt (ORCPT ); Thu, 23 Mar 2006 12:54:49 -0500 X-IronPort-AV: i="4.03,123,1141632000"; d="scan'208"; a="14633212:sNHT158064060" Subject: Re: [patch] add private data to notifier_block From: Kristen Accardi To: Jes Sorensen Cc: Alan Stern , linux-kernel@vger.kernel.org In-Reply-To: References: <1143061212.8924.10.camel@whizzy> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 23 Mar 2006 10:01:29 -0800 Message-Id: <1143136889.16072.1.camel@whizzy> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) X-OriginalArrivalTime: 23 Mar 2006 17:54:17.0777 (UTC) FILETIME=[CE333A10:01C64EA2] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1113 Lines: 29 On Thu, 2006-03-23 at 05:06 -0500, Jes Sorensen wrote: > >>>>> "Kristen" == Kristen Accardi writes: > > Kristen> On Wed, 2006-03-22 at 14:04 -0500, Alan Stern wrote: > >> I still think this isn't really needed. The same effect can be > >> accomplished by embedding a notifier_block struct within a larger > >> structure that also contains the data pointer. > > Kristen> I thought of this, but felt it would make for less easy to > Kristen> read code. But, that's just my personal style. > > I'd have to vote for Alan's side here. Thats why we have the > containerof() stuff. It also means you can embed more than just a > pointer with the notifier block and it will generate more efficient > code when doing so. > > Cheers, > Jes Ok, I bow to peer pressure and will do this your way. :) You can ignore this patch. Thanks, Kristen - 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/