Lines Matching defs:mmap
1 //! The `mmap` API.
5 //! `mmap` and related functions manipulate raw pointers and have special
19 /// `mmap(ptr, len, prot, flags, fd, offset)`—Create a file-backed memory
33 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html
34 /// [Linux]: https://man7.org/linux/man-pages/man2/mmap.2.html
36 pub unsafe fn mmap<Fd: AsFd>(
44 backend::mm::syscalls::mmap(ptr, len, prot, flags, fd.as_fd(), offset)
47 /// `mmap(ptr, len, prot, MAP_ANONYMOUS | flags, -1, 0)`—Create an anonymous
50 /// For file-backed mappings, see [`mmap`].
60 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html
61 /// [Linux]: https://man7.org/linux/man-pages/man2/mmap.2.html
63 #[doc(alias = "mmap")]