diff options
Diffstat (limited to 'man2/process_madvise.2')
-rw-r--r-- | man2/process_madvise.2 | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/man2/process_madvise.2 b/man2/process_madvise.2 index 53fd57598..b67e7e406 100644 --- a/man2/process_madvise.2 +++ b/man2/process_madvise.2 @@ -28,7 +28,7 @@ Standard C library glibc provides no wrapper for .BR process_madvise (), necessitating the use of -.BR syscall (2). +.MR syscall 2 . .\" FIXME: See <https://sourceware.org/bugzilla/show_bug.cgi?id=27380> .SH DESCRIPTION The @@ -44,7 +44,7 @@ The goal of such advice is to improve system or application performance. The .I pidfd argument is a PID file descriptor (see -.BR pidfd_open (2)) +.MR pidfd_open 2 ) that specifies the process to which the advice is to be applied. .P The pointer @@ -52,7 +52,7 @@ The pointer points to an array of .I iovec structures, described in -.BR iovec (3type). +.MR iovec 3type . .P .I vlen specifies the number of elements in the array of @@ -71,19 +71,19 @@ argument is one of the following values: .TP .B MADV_COLD See -.BR madvise (2). +.MR madvise 2 . .TP .B MADV_COLLAPSE See -.BR madvise (2). +.MR madvise 2 . .TP .B MADV_PAGEOUT See -.BR madvise (2). +.MR madvise 2 . .TP .B MADV_WILLNEED See -.BR madvise (2). +.MR madvise 2 . .P The .I flags @@ -115,14 +115,14 @@ permission to apply advice to another process is governed by ptrace access mode .B PTRACE_MODE_READ_FSCREDS check (see -.BR ptrace (2)); +.MR ptrace 2 ); in addition, because of the performance implications of applying the advice, the caller must have the .B CAP_SYS_NICE capability (see -.BR capabilities (7)). +.MR capabilities 7 ). .SH RETURN VALUE On success, .BR process_madvise () @@ -179,7 +179,7 @@ The caller does not have permission to access the address space of the process The target process does not exist (i.e., it has terminated and been waited on). .P See -.BR madvise (2) +.MR madvise 2 for .IR advice -specific errors. @@ -199,11 +199,11 @@ permission to apply advice to another process was entirely governed by ptrace access mode .B PTRACE_MODE_ATTACH_FSCREDS check (see -.BR ptrace (2)). +.MR ptrace 2 ). This requirement was relaxed in Linux 5.12 so that the caller didn't require full control over the target process. .SH SEE ALSO -.BR madvise (2), -.BR pidfd_open (2), -.BR process_vm_readv (2), -.BR process_vm_write (2) +.MR madvise 2 , +.MR pidfd_open 2 , +.MR process_vm_readv 2 , +.MR process_vm_write 2 |