mempr_off in miri::shims::native_lib::trace::parent - Rust
Description: Disables protections on the page whose address is currently in `PAGE_ADDR`.

Skip to main content

## mempr_off

# Function mempr_off

Source

    pub unsafe extern "C" fn mempr_off()

Expand description

Disables protections on the page whose address is currently in `PAGE_ADDR`.

SAFETY: `PAGE_ADDR` should be set to a page-aligned pointer to an owned page, `PAGE_SIZE` should be the host pagesize, and the range from `PAGE_ADDR` to `PAGE_SIZE` * `PAGE_COUNT` must be owned and allocated memory. No other threads should be running.