OK, thanks.

2009/7/30, roger peppe <[email protected]>:
> 2009/7/30 hugo rivera <[email protected]>:
>  > [...] there's no way two different files point to the
>
> > same data structure (but maybe two different fids do?) so reference
>  > counting is unnecessary, am I right?
>
>
> no, because a file can be opened several times.
>  when you open a file you get a new fid.
>
>  so if you've got resources associated with the file,
>  as opposed to resources private to the fid,
>  you have to reference count them (or poison any
>  fids that point to the file, if you *really* want the
>  resource to go away)
>
>


-- 
Hugo

Reply via email to