From 601f3bc6d363f8339578846b6f72b9aff58bf2d7 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 19 Jun 2010 07:08:04 +0200 Subject: [PATCH] madvise.2: minor: Reformat text for EINVAL error Signed-off-by: Michael Kerrisk --- man2/madvise.2 | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/man2/madvise.2 b/man2/madvise.2 index 2e925a0fd..2c6e0104f 100644 --- a/man2/madvise.2 +++ b/man2/madvise.2 @@ -26,7 +26,7 @@ .\" Modified, 25 Feb 2002, Michael Kerrisk, .\" Added notes on MADV_DONTNEED .\" FIXME -.\" 2.6.32 added MADV_MERGEABLE, and MADV_UNMERGEABLE +.\" 2.6.32 added MADV_MERGEABLE, and MADV_UNMERGEABLE (only if CONFIG_KSM) .\" 2.6.33 added MADV_SOFT_OFFLINE (only if CONFIG_MEMORY_FAILURE) .\" .TH MADVISE 2 2008-04-22 "Linux" "Linux Programmer's Manual" @@ -172,16 +172,21 @@ A kernel resource was temporarily unavailable. The map exists, but the area maps something that isn't a file. .TP .B EINVAL +This error can occur for the following reasons: +.IP * 3 The value .I len -is negative, +is negative. .\" .I len .\" is zero, +.IP * .I addr -is not page-aligned, +is not page-aligned. +.IP * .I advice -is not a valid value, or the application is attempting -to release locked or shared pages (with +is not a valid value +.IP * +The application is attempting to release locked or shared pages (with .BR MADV_DONTNEED ). .TP .B EIO