(
feature: SpeculationFeature,
config: SpeculationFeatureControl,
)
| 1028 | #[inline] |
| 1029 | #[doc(alias = "PR_SET_SPECULATION_CTRL")] |
| 1030 | pub 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 |
nothing calls this directly
no test coverage detected