Advise the kernel of a certain memory usage pattern.
impl MemMap {
fn advise<R>(&mut self, range: R, advice: MemAdvice) -> Result<(), Errno>
where R: Into<Range<Option<usize>>>,
}| Name | Description |
|---|---|
| range | The range for which the advice holds. Must be page-aligned. |
| advice | The advice given. |
The DontFork and HwPoison advices cannot be used safely. Trying to use them with this interface causes a process abort.