Thread (4 messages) 4 messages, 3 authors, 2025-03-20

Re: [PATCH] man/man2/get_mempolicy.2: nodemask param is a pointer

From: Alejandro Colomar <alx@kernel.org>
Date: 2025-03-20 17:35:15

Hi Joe,

On Thu, Mar 20, 2025 at 10:02:21AM -0700, Joe Konno wrote:
Derp. I can't blame Monday for this one. ^_^ Apologies for the noise.
No problem.  :)


Cheers,
Alex
On 3/20/25 09:42, Alejandro Colomar wrote:
quoted
Hi Joe,

On Thu, Mar 20, 2025 at 04:33:19PM +0000, Joe Konno wrote:
quoted
Checked, and nodemask parameter for this syscall has been a pointer
since v2.6.7 (near as I can tell).
It is currently documented as such.

	unsigned long nodemask[(.maxnode + ULONG_WIDTH - 1) / ULONG_WIDTH],

It is an array parameter, and array parameters are adjusted to pointers.


Have a lovely day!
Alex
quoted
Fixes: 77f31ff920bc ("get_mempolicy.2, mbind.2: SYNOPSIS: Use VLA syntax in function parameters")
Signed-off-by: Joe Konno <redacted>
---
  man/man2/get_mempolicy.2 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man/man2/get_mempolicy.2 b/man/man2/get_mempolicy.2
index 526acc0c9a17..d6a8eca9564b 100644
--- a/man/man2/get_mempolicy.2
+++ b/man/man2/get_mempolicy.2
@@ -18,7 +18,7 @@ NUMA (Non-Uniform Memory Access) policy library
  .nf
  .P
  .BI "long get_mempolicy(int *" mode ,
-.BI "                   unsigned long " nodemask [(. maxnode " + ULONG_WIDTH \- 1)"
+.BI "                   unsigned long *" nodemask [(. maxnode " + ULONG_WIDTH \- 1)"
  .B "                                          / ULONG_WIDTH],"
  .BI "                   unsigned long " maxnode ", void *" addr ,
  .BI "                   unsigned long " flags );
-- 
2.49.0
-- 
<https://www.alejandro-colomar.es/>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help