diff options
author | Luca Dariz <luca@orpolo.org> | 2023-01-16 11:58:51 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-18 02:11:34 +0100 |
commit | cc05ed085b731232a2436efcaf03aa1e92ad20be (patch) | |
tree | 1bfaf6bc8d7db296eeac477206dcb2c186c25e49 /ipc/ipc_kmsg.c | |
parent | c17cb87cc97f817f9705ef932fe2da6d23a1d01a (diff) | |
download | gnumach-cc05ed085b731232a2436efcaf03aa1e92ad20be.tar.gz gnumach-cc05ed085b731232a2436efcaf03aa1e92ad20be.tar.bz2 gnumach-cc05ed085b731232a2436efcaf03aa1e92ad20be.zip |
add msg_user_header_t for user-side msg structure
* include/mach/message.h: use mach_msg_user_header_t only in KERNEL,
and define it as mach_msh_header_t for user space
* ipc/ipc_kmsg.c: use mach_msg_user_header_t where appropriate
* ipc/ipc_kmsg.h: Likewise
* ipc/mach_msg.c: Likewise
* ipc/mach_msg.h: Likewise
* kern/thread.h: Likewise
Message-Id: <20230116105857.240210-2-luca@orpolo.org>
Diffstat (limited to 'ipc/ipc_kmsg.c')
-rw-r--r-- | ipc/ipc_kmsg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc/ipc_kmsg.c b/ipc/ipc_kmsg.c index efa5a124..55252d46 100644 --- a/ipc/ipc_kmsg.c +++ b/ipc/ipc_kmsg.c @@ -499,13 +499,13 @@ ipc_kmsg_free(ipc_kmsg_t kmsg) mach_msg_return_t ipc_kmsg_get( - mach_msg_header_t *msg, + mach_msg_user_header_t *msg, mach_msg_size_t size, ipc_kmsg_t *kmsgp) { ipc_kmsg_t kmsg; - if ((size < sizeof(mach_msg_header_t)) || (size & 3)) + if ((size < sizeof(mach_msg_user_header_t)) || (size & 3)) return MACH_SEND_MSG_TOO_SMALL; if (size <= IKM_SAVED_MSG_SIZE) { @@ -587,7 +587,7 @@ ipc_kmsg_get_from_kernel( mach_msg_return_t ipc_kmsg_put( - mach_msg_header_t *msg, + mach_msg_user_header_t *msg, ipc_kmsg_t kmsg, mach_msg_size_t size) { |