From owner-freebsd-hackers Thu Sep 16 14:56:43 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 16DF6151B9 for ; Thu, 16 Sep 1999 14:56:38 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.3/8.8.7) with ESMTP id RAA31653; Thu, 16 Sep 1999 17:56:25 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Thu, 16 Sep 1999 17:56:25 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Nick Hibma Cc: FreeBSD Hackers mailing list Subject: Re: nuking a vnode In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 16 Sep 1999, Nick Hibma wrote: > > How do I nuke vnodes? This is the NetBSD code that needs to be emulated: > > /* locate the major number */ > for (maj = 0; maj < nchrdev; maj++) > if (cdevsw[maj].d_open == ulptopen) > break; > > /* Nuke the vnodes for any open instances (calls close). */ > mn = self->dv_unit; > vdevgone(maj, mn, mn, VCHR); > Did you try taking a look at VOP_REVOKE()? It seems to be what you're looking for. -- Brian Fundakowski Feldman / "Any sufficiently advanced bug is \ green@FreeBSD.org | indistinguishable from a feature." | FreeBSD: The Power to Serve! \ -- Rich Kulawiec / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message