Skip to main content

cpu_has_smap

Function cpu_has_smap 

Source
fn cpu_has_smap() -> bool
Expand description

Whether CPUID.(7,0):EBX.SMAP is available. Cached on first use; the cpu() call is cheap (single Relaxed load) once cpuid::init() ran.