Re: [PATCH] man/man2/get_mempolicy.2: nodemask param is a pointer
From: Alejandro Colomar <alx@kernel.org>
Date: 2025-03-20 16:42:16
Attachments
- signature.asc [application/pgp-signature] 833 bytes
From: Alejandro Colomar <alx@kernel.org>
Date: 2025-03-20 16:42:16
Hi Joe, On Thu, Mar 20, 2025 at 04:33:19PM +0000, Joe Konno wrote:
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
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/>