MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / control_speculative_feature

Function control_speculative_feature

src/process/prctl.rs:1030–1037  ·  view source on GitHub ↗
(
    feature: SpeculationFeature,
    config: SpeculationFeatureControl,
)

Source from the content-addressed store, hash-verified

1028#[inline]
1029#[doc(alias = "PR_SET_SPECULATION_CTRL")]
1030pub fn control_speculative_feature(
1031 feature: SpeculationFeature,
1032 config: SpeculationFeatureControl,
1033) -> io::Result<()> {
1034 let feature = feature as usize as *mut _;
1035 let config = config.bits() as usize as *mut _;
1036 unsafe { prctl_3args(PR_SET_SPECULATION_CTRL, feature, config) }.map(|_r| ())
1037}
1038
1039//
1040// PR_GET_IO_FLUSHER/PR_SET_IO_FLUSHER

Callers

nothing calls this directly

Calls 1

prctl_3argsFunction · 0.85

Tested by

no test coverage detected