From 1002f1af1ca954f6bb8fbda67fccdb7a4b0055cd Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 28 Jan 2022 12:53:52 +0000 Subject: linux: Add process_mrelease Added in Linux 5.15 (884a7e5964e06ed93c7771c0d7cf19c09a8946f1), the new syscalls allows a caller to free the memory of a dying target process. Checked on x86_64-linux-gnu. Reviewed-by: Carlos O'Donell --- sysdeps/unix/sysv/linux/bits/mman_ext.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdeps/unix/sysv/linux/bits') diff --git a/sysdeps/unix/sysv/linux/bits/mman_ext.h b/sysdeps/unix/sysv/linux/bits/mman_ext.h index 20960e7df5..97234a7adf 100644 --- a/sysdeps/unix/sysv/linux/bits/mman_ext.h +++ b/sysdeps/unix/sysv/linux/bits/mman_ext.h @@ -30,4 +30,6 @@ extern __ssize_t process_madvise (int __pid_fd, const struct iovec* __iov, unsigned __flags) __THROW; +extern int process_mrelease (int pidfd, unsigned int flags) __THROW; + #endif /* __USE_GNU */ -- cgit v1.2.3-70-g09d2