Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 1999 09:16:03 +0200 (MET DST)
From:      Nick Hibma <nick.hibma@jrc.it>
To:        Julian Elischer <julian@whistle.com>
Cc:        FreeBSD Hackers mailing list <hackers@FreeBSD.ORG>
Subject:   Re: nuking a vnode
Message-ID:  <Pine.GS4.4.10.9909170914210.9900-100000@elect8>
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
 > 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 (vfinddev(dev, VCHR, &vp))
	VOP_REVOKE(vp, REVOKEALL);

#if 0
 > if (vp) {
 > 	VOP_REVOKE(vp. REVOKEALL);
 > }
#endif

 > remove_dev(dev);

/* Good one! I had not yet thought about that one */

 > 3.3 will be considerably different.

Not one of my main concerns.

Nick

-- 
ISIS/STA, T.P.270, Joint Research Centre, 21020 Ispra, Italy



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.GS4.4.10.9909170914210.9900-100000>