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

Function disable_transparent_huge_pages

src/thread/prctl.rs:679–681  ·  view source on GitHub ↗
(thp_disable: bool)

Source from the content-addressed store, hash-verified

677/// [`prctl(PR_SET_THP_DISABLE,…)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
678#[inline]
679pub fn disable_transparent_huge_pages(thp_disable: bool) -> io::Result<()> {
680 unsafe { prctl_2args(PR_SET_THP_DISABLE, usize::from(thp_disable) as *mut _) }.map(|_r| ())
681}
682
683//
684// PR_CAP_AMBIENT

Callers

nothing calls this directly

Calls 1

prctl_2argsFunction · 0.85

Tested by

no test coverage detected