wmb

Roman Kagan rkagan at mail.ru
Fri Apr 1 12:13:10 EST 2005


On Fri, Apr 01, 2005 at 04:24:28PM +0200, Duncan Sands wrote:
> Hi Roman, what is this wmb for?
> 
>         INIT_WORK(&instance->poll_work, (void *)cxacru_poll_status, instance);
> 
>         wmb();
>         usbatm_instance->driver_data = instance;
> 

I thought this way I made sure that instance is fully initialized before
it might be used.  But I'm so dumb when it comes to barriers that I'd
better ask someone with a clue when I should and when I shouldn't use
them...

Cheers,
  Roman.



More information about the Usbatm mailing list