Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 1999 16:16:32 -0700 (PDT)
From:      Julian Elischer <julian@whistle.com>
To:        Nick Hibma <hibma@skylink.it>
Cc:        FreeBSD Hackers mailing list <hackers@FreeBSD.ORG>
Subject:   Re: nuking a vnode
Message-ID:  <Pine.BSF.3.95.990916161558.295B-100000@current1.whistle.com>
In-Reply-To: <Pine.BSF.3.95.990916160744.295A-100000@current1.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 16 Sep 1999, Julian Elischer wrote:

> 
> 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);
> 
> In -current something like:
> 
> int major;
> dev_t dev;
> struct vnode *vp;
> 
> major = ultp_cdevsw.d_maj;
> dev = makedev(major, self->dv_unit)
> vp = SLIST_FIRST(&dev->si_hlist);
> if (vp) {
> 	VOP_REVOKE(vp. REVOKEALL);
                     ^  comma (,)

> }
> remove_dev(dev);
> 
> 3.3 will be considerably different.
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 



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.3.95.990916161558.295B-100000>