From 41a65f128c183333ef6bd9b6b470c1af2a4514ec Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 1 Aug 2012 07:14:18 +0200 Subject: [PATCH] migrate_pages.2: Fix description of return value Reported-by: Christoph Lameter Reported-by: JoonSoo Kim Signed-off-by: Michael Kerrisk --- man2/migrate_pages.2 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/man2/migrate_pages.2 b/man2/migrate_pages.2 index 416a569c5..47615bf58 100644 --- a/man2/migrate_pages.2 +++ b/man2/migrate_pages.2 @@ -14,7 +14,7 @@ .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. -.TH MIGRATE_PAGES 2 2010-11-01 "Linux" "Linux Programmer's Manual" +.TH MIGRATE_PAGES 2 2012-08-01 "Linux" "Linux Programmer's Manual" .SH NAME migrate_pages \- move all pages in a process to another set of nodes .SH SYNOPSIS @@ -29,7 +29,7 @@ migrate_pages \- move all pages in a process to another set of nodes Link with \fI\-lnuma\fP. .SH DESCRIPTION .BR migrate_pages () -moves all pages of the process +attempts to move all pages of the process .I pid that are in memory nodes .I old_nodes @@ -87,7 +87,8 @@ privilege. .SH "RETURN VALUE" On success .BR migrate_pages () -returns zero. +returns the number of pages that cold not be moved +(i.e., a return of zero means that all pages were successfully moved). On error, it returns \-1, and sets .I errno to indicate the error.