On Fri, 2007-09-07 at 16:36 +0100, Paul Durrant wrote:
> On 07/09/2007, Garrett D'Amore <[EMAIL PROTECTED]> wrote:
> >
> > There are further complexities, because the driver cannot know if any
> > upstream callers are still busy until it calls mac_unregister().  And
> > then, because mac_unregister *also* frees the structure, its too late.
> >
> 
> You mean upstream callers that have done mac_open()? That should take
> a ref. on the mac_impl_t.

Yes, but since that reference count would not be covered by a lock that
the driver currently knows about or could safely acquire, the driver
clould not rely upon it to tell it anything meaningful.

Again, interface complexity is more than just the prototypes in the
header file... its also the amount of contortions that the consumers
have to go through to use those functions safely.

        -- Garrett


_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to