wmb
Duncan Sands
baldrick at free.fr
Wed May 4 04:16:55 EDT 2005
> > > 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.
>
> do you think this argument actually justifies the wmb() here?
No - wmb makes sure that other CPUs (or processes) see that right value
in memory. At this point no-one else is rummaging around in this data
structure are they?
D.
More information about the Usbatm
mailing list