Skip to contentSkip to conversation

madvise.2: update EINVAL return info

PATCH In review Charan Teja Reddy 2 participants 2 messages Mar 16, 2022 – Mar 17, 2022 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 madvise.2: update EINVAL return info

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.

---
 man2/madvise.2 | 10 ++++++++++
 1 file changed, 10 insertions(+)
man2/madvise.2 +10 -0
index f1f384c..ab98a87 100644
@@ -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
Signature · 1 line
2.7.4
#1 lore raw

Hellp Charan,

Quoted 6 lines · 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.

Patch applied.

Thanks,

Alex

Quoted 25 lines
---
 man2/madvise.2 | 10 ++++++++++
 1 file changed, 10 insertions(+)
man2/madvise.2 +10 -0
index f1f384c..ab98a87 100644
@@ -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
Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/