Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Oct 2000 16:21:02 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/fs/devfs devfs_devs.c devfs_vfsops.c devfs_vnops.c 
Message-ID:  <65531.971101262@critter>
In-Reply-To: Your message of "Mon, 09 Oct 2000 07:18:08 PDT." <200010091418.HAA78652@freefall.freebsd.org> 

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

>  Implement first cut try at killing cloned devices when they are
>  not needed anymore.  For now only the bpf driver is involved in
>  this experiment.  Cloned devices can set the SI_CHEAPCLONE flag
>  which allows us to destroy_dev() it when the vcount() drops to zero
>  and the vnode is reclaimed.  For now it's a requirement that the
>  driver doesn't keep persistent state from close to (re)open.

I'm kind of hessitant to add another function to the cdevsw[] to
handle device destruction, but if anybody can come up with a 
decent reason why a (cloning) pseudo driver would store persistent
data after last close, I'll reconsider.

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?65531.971101262>