Thread (10 messages) 10 messages, 2 authors, 2025-05-31

[PATCH v2] man/: Fix name of vm.hugetlb_shm_group

From: Ahelenia Ziemiańska <hidden>
Date: 2025-05-31 17:18:34
Subsystem: the rest · Maintainer: Linus Torvalds

sysctl_hugetlb_shm_group is the name of the variable(!) in mm/hugetlb.c

Fixes: 090fdddb4 ("memfd_create.2, mmap.2, shmget.2: Document the EPERM for huge page allocations")
Fixes: 6cee0ddeb ("proc.5: Document /proc/sys/vm/sysctl_hugetlb_shm_group")
Signed-off-by: Ahelenia Ziemiańska <redacted>
---
 man/man2/memfd_create.2 | 4 ++--
 man/man2/mmap.2         | 4 ++--
 man/man2/shmget.2       | 4 ++--
 man/man5/proc_sys_vm.5  | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/man/man2/memfd_create.2 b/man/man2/memfd_create.2
index 4cf30c157..29a110ef7 100644
--- a/man/man2/memfd_create.2
+++ b/man/man2/memfd_create.2
@@ -195,9 +195,9 @@ .SH ERRORS
 .B CAP_IPC_LOCK
 capability)
 and is not a member of the
-.I sysctl_hugetlb_shm_group
+.I hugetlb_shm_group
 group; see the description of
-.I /proc/sys/vm/sysctl_hugetlb_shm_group
+.I /proc/sys/vm/hugetlb_shm_group
 in
 .BR proc (5).
 .SH STANDARDS
diff --git a/man/man2/mmap.2 b/man/man2/mmap.2
index 255fa2353..cf110dad9 100644
--- a/man/man2/mmap.2
+++ b/man/man2/mmap.2
@@ -614,9 +614,9 @@ .SH ERRORS
 .B CAP_IPC_LOCK
 capability)
 and is not a member of the
-.I sysctl_hugetlb_shm_group
+.I hugetlb_shm_group
 group; see the description of
-.I /proc/sys/vm/sysctl_hugetlb_shm_group
+.I /proc/sys/vm/hugetlb_shm_group
 in
 .BR proc_sys (5).
 .TP
diff --git a/man/man2/shmget.2 b/man/man2/shmget.2
index 8101dbb50..d273966a9 100644
--- a/man/man2/shmget.2
+++ b/man/man2/shmget.2
@@ -251,9 +251,9 @@ .SH ERRORS
 .B CAP_IPC_LOCK
 capability)
 and is not a member of the
-.I sysctl_hugetlb_shm_group
+.I hugetlb_shm_group
 group; see the description of
-.I /proc/sys/vm/sysctl_hugetlb_shm_group
+.I /proc/sys/vm/hugetlb_shm_group
 in
 .BR proc (5).
 .SH STANDARDS
diff --git a/man/man5/proc_sys_vm.5 b/man/man5/proc_sys_vm.5
index 4ee50a54f..1ed32b8ff 100644
--- a/man/man5/proc_sys_vm.5
+++ b/man/man5/proc_sys_vm.5
@@ -85,7 +85,7 @@ .SH DESCRIPTION
 .BR sync (1)
 first.
 .TP
-.IR  /proc/sys/vm/sysctl_hugetlb_shm_group " (since Linux 2.6.7)"
+.IR  /proc/sys/vm/hugetlb_shm_group " (since Linux 2.6.7)"
 This writable file contains a group ID that is allowed
 to allocate memory using huge pages.
 If a process has a filesystem group ID or any supplementary group ID that
-- 
2.39.5

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