diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-11-12 13:21:39 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-11-12 13:21:39 +0000 |
commit | bfd525c6fc61747fc36cd539b7d82e7cb7d20e6f (patch) | |
tree | fb7021d4ec24232e18e2399544596d927d2ae1b0 /sys/sys/shm.h | |
parent | e84711f2e5f2ddcf93159e7a823e10e657006fb1 (diff) | |
download | FreeBSD-src-bfd525c6fc61747fc36cd539b7d82e7cb7d20e6f.zip FreeBSD-src-bfd525c6fc61747fc36cd539b7d82e7cb7d20e6f.tar.gz |
First of several commits to allow kernel System V IPC data structures
to be modified and extended without breaking the user space ABI:
Define _kernel wrapper data structures for the user-exposed data
structures that current server as the internal data structures for
the implementation:
- struct msqid_kernel wraps struct msqid_ds.
- struct semid_kernel wraps truct semid_ds.
- struct shmid_kernel wraps struct shmid_ds.
- Don't expose extern definition 'shmsegs' outside of sysv_shm.c.
Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, SPAWAR, McAfee Research
Diffstat (limited to 'sys/sys/shm.h')
-rw-r--r-- | sys/sys/shm.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/sys/shm.h b/sys/sys/shm.h index a56e40d..07ae3a6 100644 --- a/sys/sys/shm.h +++ b/sys/sys/shm.h @@ -83,8 +83,16 @@ struct shminfo { shmseg, /* max shared memory segments per process */ shmall; /* max amount of shared memory (pages) */ }; + +/* + * Add a kernel wrapper to the shmid_ds struct so that private info (like the + * MAC label) can be added to it, without changing the user interface. + */ +struct shmid_kernel { + struct shmid_ds u; +}; + extern struct shminfo shminfo; -extern struct shmid_ds *shmsegs; struct shm_info { int used_ids; |