xref: /third_party/rust/crates/rustix/src/mm/mod.rs
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/rust/crates/rustix/src/mm/
1b8a62b91Sopenharmony_ci//! Memory map operations.
2b8a62b91Sopenharmony_ci
3b8a62b91Sopenharmony_ci#[cfg(not(target_os = "redox"))]
4b8a62b91Sopenharmony_cimod madvise;
5b8a62b91Sopenharmony_cimod mmap;
6b8a62b91Sopenharmony_cimod msync;
7b8a62b91Sopenharmony_ci#[cfg(any(target_os = "android", target_os = "linux"))]
8b8a62b91Sopenharmony_cimod userfaultfd;
9b8a62b91Sopenharmony_ci
10b8a62b91Sopenharmony_ci#[cfg(not(target_os = "redox"))]
11b8a62b91Sopenharmony_cipub use madvise::{madvise, Advice};
12b8a62b91Sopenharmony_cipub use mmap::{
13b8a62b91Sopenharmony_ci    mlock, mmap, mmap_anonymous, mprotect, munlock, munmap, MapFlags, MprotectFlags, ProtFlags,
14b8a62b91Sopenharmony_ci};
15b8a62b91Sopenharmony_ci#[cfg(any(target_os = "android", target_os = "linux"))]
16b8a62b91Sopenharmony_cipub use mmap::{mlock_with, MlockFlags};
17b8a62b91Sopenharmony_ci#[cfg(any(linux_raw, all(libc, target_os = "linux")))]
18b8a62b91Sopenharmony_cipub use mmap::{mremap, mremap_fixed, MremapFlags};
19b8a62b91Sopenharmony_cipub use msync::{msync, MsyncFlags};
20b8a62b91Sopenharmony_ci#[cfg(any(target_os = "android", target_os = "linux"))]
21b8a62b91Sopenharmony_cipub use userfaultfd::{userfaultfd, UserfaultfdFlags};
22

Indexes created Thu Nov 07 10:32:03 CST 2024