Text of rust.docs.kernel.org › core › intrinsics › fn.prefetch_write_instruction.html as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

prefetch_write_instruction in core::intrinsics - Rust

Skip to main content prefetch_write_instruction core :: intrinsics Function prefetch_ write_ instruction Source pub const fn prefetch_write_instruction<T, const LOCALITY: i32 >(data: *const T ) 🔬 This is a nightly-only experimental API. ( core_intrinsics ) Expand description The prefetch intrinsic is a hint to the code generator to insert a prefetch instruction for the given address if supported; otherwise, it is a no-op.

Prefetches have no effect on the behavior of the program but can change its performance characteristics. The LOCALITY argument is a temporal locality specifier ranging from (0) - no locality, to (3) - extremely local keep in cache. This intrinsic does not have a stable counterpart.