From owner-freebsd-current Tue Feb 19 22: 1:27 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.sat.t.u-tokyo.ac.jp (nat.keisu.t.u-tokyo.ac.jp [133.11.68.2]) by hub.freebsd.org (Postfix) with ESMTP id 404E537B446 for ; Tue, 19 Feb 2002 22:00:53 -0800 (PST) Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [10.6.1.30]) by mail.sat.t.u-tokyo.ac.jp (Postfix) with ESMTP id 2A25B2DABB; Wed, 20 Feb 2002 15:00:52 +0900 (JST) Date: Wed, 20 Feb 2002 15:00:52 +0900 Message-ID: From: Hidetoshi Shimokawa To: Peter Wemm Cc: Mike Smith , current@FreeBSD.ORG Subject: Re: HEADS UP: module build process changed In-Reply-To: <20020220054111.5648339F1@overcee.wemm.org> References: <20020220054111.5648339F1@overcee.wemm.org> User-Agent: Wanderlust/2.4.1 (Stand By Me) REMI/1.14.3 (Matsudai) FLIM/1.13.2 (Kasanui) APEL/10.3 MULE XEmacs/21.2 (beta19) (Shinjuku) (i386-unknown-freebsd3.2) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7:#j7i14gu$ jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Tue, 19 Feb 2002 21:41:11 -0800, Peter Wemm wrote: > > e.g. > > > > kldload module1 > > kldload module2 > > > > module2 cannnot resolv symbols in module1. > > > > -stable doesn't have this problem. > > module2 cannot resolve symbols in module1 unless there is a declared > dependency. This is intentional, otherwise there is no way to check that > module1 is not unloaded while module2 is using it. Stable is lacking this > enforcement. Thanks for the information. Could you point me an example code how to declare dependency? In my environment module1 is firewire bus drivier, module2 is sbp driver. module1: DRIVER_MODULE(firewire,fwohci,firewire_driver,firewire_devclass,0,0); module2: DRIVER_MODULE(sbp, firewire, sbp_driver, sbp_devclass, 0, 0); /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message