From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 21 18:14:18 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8FE216A417; Thu, 21 Sep 2006 18:14:18 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D73643E6B; Thu, 21 Sep 2006 18:13:09 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Fri, 22 Sep 2006 02:12:51 +0800 id 0010E409.4512D623.00003440 From: "Intron is my alias on the Internet" To: freebsd-hackers@freebsd.org Date: Fri, 22 Sep 2006 02:12:51 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: Subject: A Bug in linker_reference_module() ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Sep 2006 18:14:18 -0000 Please have a look at the function linker_reference_module() in /sys/kern/kern_linker.c of 7.0-CURRENT. If the module is loaded on demand, why not increase its reference counter after loading? In my opinion, linker_reference_module() behaves differently from linker_load_file(). ------------------------------------------------------------------------ From Beijing, China