From 3af6d22bb3850ab2bac67287e3a3d3b0e32868e5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:41:07 +0200 Subject: Merging upstream version 6.7. Signed-off-by: Daniel Baumann --- man2/move_pages.2 | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'man2/move_pages.2') diff --git a/man2/move_pages.2 b/man2/move_pages.2 index c2be4bb..e9627d1 100644 --- a/man2/move_pages.2 +++ b/man2/move_pages.2 @@ -1,4 +1,4 @@ -.\" SPDX-License-Identifier: Linux-man-pages-copyleft-2-para +.\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" This manpage is Copyright (C) 2006 Silicon Graphics, Inc. .\" Christoph Lameter @@ -8,7 +8,7 @@ .\" (e.g., compare with recommendation in mbind(2)). .\" Does this page need to give advice on this topic? .\" -.TH move_pages 2 2023-07-15 "Linux man-pages 6.05.01" +.TH move_pages 2 2023-10-31 "Linux man-pages 6.7" .SH NAME move_pages \- move individual pages of a process to another node .SH LIBRARY @@ -17,7 +17,7 @@ NUMA (Non-Uniform Memory Access) policy library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "long move_pages(int " pid ", unsigned long " count ", \ void *" pages [. count ], .BI " const int " nodes [. count "], int " status [. count "], \ @@ -36,7 +36,7 @@ The result of the move is reflected in The .I flags indicate constraints on the pages to be moved. -.PP +.P .I pid is the ID of the process in which pages are to be moved. If @@ -44,7 +44,7 @@ If is 0, then .BR move_pages () moves pages of the calling process. -.PP +.P To move pages in another process requires the following privileges: .IP \[bu] 3 Up to and including Linux 4.12: @@ -64,7 +64,7 @@ permission is governed by a ptrace access mode .B PTRACE_MODE_READ_REALCREDS check with respect to the target process; see .BR ptrace (2). -.PP +.P .I count is the number of pages to move. It defines the size of the three arrays @@ -72,7 +72,7 @@ It defines the size of the three arrays .IR nodes , and .IR status . -.PP +.P .I pages is an array of pointers to the pages that should be moved. These are pointers that should be aligned to page boundaries. @@ -80,7 +80,7 @@ These are pointers that should be aligned to page boundaries. .\" not aligned to page boundaries Addresses are specified as seen by the process specified by .IR pid . -.PP +.P .I nodes is an array of integers that specify the desired location for each page. Each element in the array is a node number. @@ -93,7 +93,7 @@ where each page currently resides, in the array. Obtaining the status of each page may be necessary to determine pages that need to be moved. -.PP +.P .I status is an array of integers that return the status of each page. The array contains valid values only if @@ -102,7 +102,7 @@ did not return an error. Preinitialization of the array to a value which cannot represent a real numa node or valid error of status array could help to identify pages that have been migrated. -.PP +.P .I flags specify what types of pages to move. .B MPOL_MF_MOVE @@ -214,7 +214,7 @@ Linux 2.6.18. .SH NOTES For information on library support, see .BR numa (7). -.PP +.P Use .BR get_mempolicy (2) with the @@ -225,7 +225,7 @@ flag to obtain the set of nodes that are allowed by the current cpuset. Note that this information is subject to change at any time by manual or automatic reconfiguration of the cpuset. -.PP +.P Use of this function may result in pages whose location (node) violates the memory policy established for the specified addresses (See @@ -235,7 +235,7 @@ and/or the specified process (See That is, memory policy does not constrain the destination nodes used by .BR move_pages (). -.PP +.P The .I header is not included with glibc, but requires installing -- cgit v1.2.3