diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-11-12 13:23:47 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-11-12 13:23:47 +0000 |
commit | 891fcc97664eab7af236d2059d5fb57b1c9e5e94 (patch) | |
tree | 7b28642b355dd6af350ed16e81167324f231cefc /sys/sys/msg.h | |
parent | b85b860ea8e3e200d66961e8588fe6ffb62568eb (diff) | |
download | FreeBSD-src-891fcc97664eab7af236d2059d5fb57b1c9e5e94.zip FreeBSD-src-891fcc97664eab7af236d2059d5fb57b1c9e5e94.tar.gz |
Second of several commits to allow kernel System V IPC data structures
to be modified and extended without breaking the user space ABI:
Use _kernel variants on _ds structures for System V sempahores, message
queues, and shared memory. When interfacing with userspace, export
only the _ds subsets of the _kernel data structures. A lot of search
and replace.
Define the message structure in the _KERNEL portion of msg.h so that it
can be used by other kernel consumers, but not exposed to user space.
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/msg.h')
-rw-r--r-- | sys/sys/msg.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/sys/msg.h b/sys/sys/msg.h index fa058e1..53d1047 100644 --- a/sys/sys/msg.h +++ b/sys/sys/msg.h @@ -100,6 +100,15 @@ struct mymsg { #ifdef _KERNEL +struct msg { + struct msg *msg_next; /* next msg in the chain */ + long msg_type; /* type of this message */ + /* >0 -> type of this message */ + /* 0 -> free header */ + u_short msg_ts; /* size of this message */ + short msg_spot; /* location of start of msg in buffer */ +}; + /* * Based on the configuration parameters described in an SVR2 (yes, two) * config(1m) man page. |