Terry Lambert wrote:
> > > > > > #define D_TRACKCLOSE 0x80000 /* track all closes */
> > > > > Under what circumstances is it permissable to _not_ set this bit?
> > > > When you want the old behavior.
> > > Under what circumstances is it permissable to want the old behaviour?
> >
> > Jeez Terry, I don't know, it's how it used to be so I assume it's for
> > compatibility or for drivers that simply don't care. Am I missing
> > something here?
>
> I guess I'm asking "What moron would want to intentionally disable
> system resource tracking?".
Who said anything about disabling system resource tracking? "track all
closes" means to call the devsw d_close function for *each* close, not just
for the "last close" as 99% of our drivers expect... If we suddenly caused
d_close() to be called on every close() syscall, then existing drivers break
because they are used to freeing everything and cleaning up when the close
function is called.
Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message