mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] madvise.2: update EINVAL return info
@ 2022-03-16 14:52 Charan Teja Reddy
  2022-03-17 21:02 ` Alejandro Colomar (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Charan Teja Reddy @ 2022-03-16 14:52 UTC (permalink / raw)
  To: alx.manpages, mtk.manpages, minchan, nadav.amit
  Cc: linux-man, linux-kernel, Charan Teja Reddy

MADV_COLD and MADV_PAGEOUT advises on an address range which includes
locked, Huge TLB pages or VM_PFNMAP pages can return EINVAL. Update the
man pages accordingly.

Reported-by: Nadav Amit <nadav.amit@gmail.com>
Signed-off-by: Charan Teja Reddy <quic_charante@quicinc.com>
---
 man2/madvise.2 | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/man2/madvise.2 b/man2/madvise.2
index f1f384c..ab98a87 100644
--- a/man2/madvise.2
+++ b/man2/madvise.2
@@ -505,6 +505,16 @@ is not a valid.
 .B EINVAL
 .I advice
 is
+.BR MADV_COLD
+or
+.BR MADV_PAGEOUT
+and the specified address range includes locked, Huge TLB pages, or
+.B VM_PFNMAP
+pages.
+.TP
+.B EINVAL
+.I advice
+is
 .B MADV_DONTNEED
 or
 .BR MADV_REMOVE
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-17 21:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16 14:52 [PATCH] madvise.2: update EINVAL return info Charan Teja Reddy
2022-03-17 21:02 ` Alejandro Colomar (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®