Date: Thu, 16 Sep 1999 17:56:25 -0400 (EDT) From: "Brian F. Feldman" <green@FreeBSD.org> To: Nick Hibma <hibma@skylink.it> Cc: FreeBSD Hackers mailing list <hackers@FreeBSD.org> Subject: Re: nuking a vnode Message-ID: <Pine.BSF.4.10.9909161753180.29724-100000@janus.syracuse.net> In-Reply-To: <Pine.BSF.4.10.9909162322170.30216-100000@heidi.plazza.it>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9909161753180.29724-100000>
