Function procfs::sys::vm::max_map_count[][src]

pub fn max_map_count() -> ProcResult<u64>
Expand description

The maximum number of memory map areas a process may have.

Memory map areas are used as a side-effect of calling malloc, directly by mmap, mprotect, and madvise, and also when loading shared libraries.

Example

use procfs::sys::vm::max_map_count;

assert_ne!(max_map_count().unwrap(), 0);