Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261826AbVAYGAX (ORCPT ); Tue, 25 Jan 2005 01:00:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261827AbVAYGAW (ORCPT ); Tue, 25 Jan 2005 01:00:22 -0500 Received: from pimout3-ext.prodigy.net ([207.115.63.102]:4496 "EHLO pimout3-ext.prodigy.net") by vger.kernel.org with ESMTP id S261826AbVAYGAT (ORCPT ); Tue, 25 Jan 2005 01:00:19 -0500 Date: Mon, 24 Jan 2005 21:59:01 -0800 From: Chris Wedgwood To: Terence Ripperda Cc: Keith Owens , davidm@hpl.hp.com, bgerst@didntduck.org, Linux Kernel Mailing List Subject: Re: inter_module_get and __symbol_get Message-ID: <20050125055901.GA14453@taniwha.stupidest.org> References: <16885.30810.787188.591830@napali.hpl.hp.com> <30494.1106606658@ocs3.ocs.com.au> <20050125053104.GF1716@hygelac> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050125053104.GF1716@hygelac> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 606 Lines: 15 On Mon, Jan 24, 2005 at 11:31:04PM -0600, Terence Ripperda wrote: > this is probably a stupid question, but how are weak references > used? the linker sets them to zero, so "if (foo) { ... }" works nicely it does mean if a module that set foo to non-zero is loaded, we need to zero it again when it's unloaded or else we have stale bogus pointers left around - 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/