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);
}
remove_dev(dev);
3.3 will be considerably different.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message