__dsb in core::arch::aarch64 - Rust
Description: Generates a DSB (data synchronization barrier) instruction or equivalent CP15 instruction.
Keywords: rust, rustlang, rust-lang, __dsb

# Function core::arch::aarch64::__dsb
[−][src]

    pub unsafe fn __dsb<A>(arg: A) where
        A: Dsb,

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)
This is supported on AArch64 only.
Expand description

Generates a DSB (data synchronization barrier) instruction or equivalent CP15 instruction.

DSB ensures the completion of memory accesses. A DSB behaves as the equivalent DMB and has additional properties. After a DSB instruction completes, all memory accesses of the specified type issued before the DSB are guaranteed to have completed.

The __dsb() intrinsic also acts as a compiler memory barrier of the appropriate type.