From owner-freebsd-current@FreeBSD.ORG Fri Apr 22 02:25:30 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAC4A16A4CE; Fri, 22 Apr 2005 02:25:30 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B294543D2D; Fri, 22 Apr 2005 02:25:29 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j3M2PLn9052208; Fri, 22 Apr 2005 11:55:21 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Bill Paul Date: Fri, 22 Apr 2005 11:55:09 +0930 User-Agent: KMail/1.8 References: <20050420052240.7EFAD16A4CF@hub.freebsd.org> In-Reply-To: <20050420052240.7EFAD16A4CF@hub.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2238260.9b1PmSkGtP"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504221155.15993.doconnor@gsoft.com.au> X-Spam-Score: -2.2 () IN_REP_TO,MIME_LONG_LINE_QP,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: freebsd-current@FreeBSD.ORG Subject: Re: New driver loading scheme for Project Evil, need input X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 02:25:31 -0000 --nextPart2238260.9b1PmSkGtP Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 20 Apr 2005 14:52, Bill Paul wrote: > I had to rig things such that unloading one of the converted modules > forces a detach of all devices associated with that module. Failing > to do this would leave a network interface in place that depends > on a non-existent .SYS image. I was hoping to find a way to trick > the module dependency mechanism into handling this for me, but > came up empty. So instead, windrv_unload() hunts down all the device > handles for any dependent interfaces and does an explicit > device_detach() on them. Hmm pitty.. The wrapped .sys file can't have stubs for attach/detach/etc? That way it would be the module that creates & destroys the device instance= =20 even if all it does it call if_ndis functions.. > I put a snapshot of the code (relative to -current) at: > > http://www.freebsd.org/~wpaul/ndis_snap.tar.gz > > The script and stub file are in the usr.sbin/ndiscvt directory. The > script still needs a bit of work, but handles most basic cases. Looks good although perhaps a non-interactive version to allow you to use=20 filename completion would be handy. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2238260.9b1PmSkGtP Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCaGCL5ZPcIHs/zowRAns5AJ9Ms2E34cLitK/V4EHvyZp1mqYviACdHEfk t5DQnot4qoU0lmsU9uIRGnU= =MOar -----END PGP SIGNATURE----- --nextPart2238260.9b1PmSkGtP--