pub(super) fn map(len: usize, align: usize) -> Result<*mut u8>Available on Unix and crate feature
pool and non-miri only.Expand description
Maps len bytes of anonymous memory with the base aligned to
align. len must be a whole number of pages and align a
page-multiple power of two. Alignments beyond one page over-map and
trim; huge-page alignments additionally advise MADV_HUGEPAGE
(best-effort; the kernel falls back to base pages under
fragmentation).