From owner-cvs-all Tue Apr 9 18:14: 3 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0FDEA37B416; Tue, 9 Apr 2002 18:13:58 -0700 (PDT) Received: (from brian@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3A1DwZ02558; Tue, 9 Apr 2002 18:13:58 -0700 (PDT) (envelope-from brian) Message-Id: <200204100113.g3A1DwZ02558@freefall.freebsd.org> From: Brian Somers Date: Tue, 9 Apr 2002 18:13:58 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/digi digi.c src/sys/kern kern_linker.c src/sys/sys linker.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG brian 2002/04/09 18:13:58 PDT Modified files: sys/dev/digi digi.c sys/kern kern_linker.c sys/sys linker.h Log: Change linker_reference_module() so that it's passed a struct mod_depend * (which may be NULL). The only consumer of this function at the moment is digi_loadmoduledata(), and that passes a NULL mod_depend *. In linker_reference_module(), check to see if we've already got the required module loaded. If we have, bump the reference count and return that, otherwise continue the module search as normal. Revision Changes Path 1.23 +8 -2 src/sys/dev/digi/digi.c 1.87 +14 -3 src/sys/kern/kern_linker.c 1.29 +4 -1 src/sys/sys/linker.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message