git: 53725168e1b6 - main - SysV SHM: move SHMSEG constants to sys/shm.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 May 2024 17:53:48 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=53725168e1b631be0e60f888ba5e63e140b57766
commit 53725168e1b631be0e60f888ba5e63e140b57766
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-05-16 15:24:00 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-05-16 17:53:31 +0000
SysV SHM: move SHMSEG constants to sys/shm.h
There are planned consumers in linprocfs.
Tested by: Ricardo Branco <rbranco@suse.de>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D45175
---
sys/kern/sysv_shm.c | 4 ----
sys/sys/shm.h | 4 ++++
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c
index 2529a9eeb1a7..8f67cb63f33c 100644
--- a/sys/kern/sysv_shm.c
+++ b/sys/kern/sysv_shm.c
@@ -109,10 +109,6 @@ FEATURE(sysv_shm, "System V shared memory segments support");
static MALLOC_DEFINE(M_SHM, "shm", "SVID compatible shared memory segments");
-#define SHMSEG_FREE 0x0200
-#define SHMSEG_REMOVED 0x0400
-#define SHMSEG_ALLOCATED 0x0800
-
static int shm_last_free, shm_nused, shmalloced;
vm_size_t shm_committed;
static struct shmid_kernel *shmsegs;
diff --git a/sys/sys/shm.h b/sys/sys/shm.h
index 0b5cba0120e5..9c6dad5d43cc 100644
--- a/sys/sys/shm.h
+++ b/sys/sys/shm.h
@@ -152,6 +152,10 @@ struct vmspace;
extern struct shminfo shminfo;
+#define SHMSEG_FREE 0x0200
+#define SHMSEG_REMOVED 0x0400
+#define SHMSEG_ALLOCATED 0x0800
+
void shmexit(struct vmspace *);
void shmfork(struct proc *, struct proc *);