kernel::sync::barrier

Function dma_mb

Source
pub fn dma_mb<T: MemoryBarrier<Dma>>(_: T)
Expand description

Memory barrier between local CPU and bus-mastering devices.

A barrier that prevents compiler and CPU from reordering memory accesses across the barrier. Does not prevent re-ordering with respect to other CPUs.

See mb for usage.