# sfence_vma_all in riscv::asm - Rust
`SFENCE.VMA` instruction wrapper (all address spaces and page table levels)
Keywords: rust, rustlang, rust-lang, sfence_vma_all

# Function riscv::asm::sfence_vma_all

source · [−]

    pub unsafe fn sfence_vma_all()

Expand description

`SFENCE.VMA` instruction wrapper (all address spaces and page table levels)

Synchronizes updates to in-memory memory-management data structures with current execution. Instruction execution causes implicit reads and writes to these data structures; however, these implicit references are ordinarily not ordered with respect to loads and stores in the instruction stream. Executing an `SFENCE.VMA` instruction guarantees that any stores in the instruction stream prior to the `SFENCE.VMA` are ordered before all implicit references subsequent to the `SFENCE.VMA`.