(
option: VirtualMemoryMapAddress,
address: Option<NonNull<c_void>>,
)
| 668 | #[inline] |
| 669 | #[doc(alias = "PR_SET_MM")] |
| 670 | pub unsafe fn set_virtual_memory_map_address( |
| 671 | option: VirtualMemoryMapAddress, |
| 672 | address: Option<NonNull<c_void>>, |
| 673 | ) -> io::Result<()> { |
| 674 | let address = address.map_or_else(null_mut, NonNull::as_ptr); |
| 675 | prctl_3args(PR_SET_MM, option as usize as *mut _, address).map(|_r| ()) |
| 676 | } |
| 677 | |
| 678 | /// Supersede the `/proc/pid/exe` symbolic link with a new one pointing to a |
| 679 | /// new executable file. |
nothing calls this directly
no test coverage detected