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

Function current_timer_slack

src/thread/prctl.rs:587–589  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

585/// [`prctl(PR_GET_TIMERSLACK,…)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
586#[inline]
587pub fn current_timer_slack() -> io::Result<u64> {
588 unsafe { prctl_1arg(PR_GET_TIMERSLACK) }.map(|r| r as u64)
589}
590
591const PR_SET_TIMERSLACK: c_int = 29;
592

Callers

nothing calls this directly

Calls 1

prctl_1argFunction · 0.85

Tested by

no test coverage detected