[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/8] include: define MACH_MSG_TYPE_PROTECTED_PAYLOAD
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 4/8] include: define MACH_MSG_TYPE_PROTECTED_PAYLOAD |
Date: |
Wed, 1 Oct 2014 01:16:49 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Ack.
Justus Winter, le Thu 18 Sep 2014 15:22:46 +0200, a écrit :
> * include/mach/message.h: Define MACH_MSG_TYPE_PROTECTED_PAYLOAD.
> (MACH_MSG_TYPE_LAST): Adjust accordingly.
> * doc/mach.texi (Message Format): Document
> MACH_MSG_TYPE_PROTECTED_PAYLOAD.
> ---
> doc/mach.texi | 6 ++++++
> include/mach/message.h | 4 +++-
> 2 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/doc/mach.texi b/doc/mach.texi
> index 671e0d0..b187888 100644
> --- a/doc/mach.texi
> +++ b/doc/mach.texi
> @@ -1426,6 +1426,7 @@ types are predefined:
> @item MACH_MSG_TYPE_STRING
> @item MACH_MSG_TYPE_STRING_C
> @item MACH_MSG_TYPE_PORT_NAME
> +@item MACH_MSG_TYPE_PROTECTED_PAYLOAD
> @end table
>
> The following predefined types specify port rights, and receive special
> @@ -1444,6 +1445,11 @@ should be used in preference to
> @code{MACH_MSG_TYPE_INTEGER_32}.
> @item MACH_MSG_TYPE_MAKE_SEND_ONCE
> @end table
>
> +The type @code{MACH_MSG_TYPE_PROTECTED_PAYLOAD} is used by the kernel
> +to indicate that a delivered message carries a payload in the
> +@code{msgh_protected_payload} field. See @ref{Message Receive} for
> +more information.
> +
> @item msgt_size : 8
> The @code{msgt_size} field specifies the size of each datum, in bits. For
> example, the msgt_size of @code{MACH_MSG_TYPE_INTEGER_32} data is 32.
> diff --git a/include/mach/message.h b/include/mach/message.h
> index 7464a57..0a7297e 100644
> --- a/include/mach/message.h
> +++ b/include/mach/message.h
> @@ -256,7 +256,9 @@ typedef struct {
> #define MACH_MSG_TYPE_PORT_SEND MACH_MSG_TYPE_MOVE_SEND
> #define MACH_MSG_TYPE_PORT_SEND_ONCE MACH_MSG_TYPE_MOVE_SEND_ONCE
>
> -#define MACH_MSG_TYPE_LAST 22 /* Last assigned */
> +#define MACH_MSG_TYPE_PROTECTED_PAYLOAD 23
> +
> +#define MACH_MSG_TYPE_LAST 23 /* Last assigned */
>
> /*
> * A dummy value. Mostly used to indicate that the actual value
> --
> 2.1.0
>
--
Samuel
"...very few phenomena can pull someone out of Deep Hack Mode, with two
noted exceptions: being struck by lightning, or worse, your *computer*
being struck by lightning."
(By Matt Welsh)
- Re: [PATCH 5/5] ipc: provide the protected payload in ipc_kmsg_copyout_header, Justus Winter, 2014/09/18
- [PATCH 1/8] ipc: add protected payload, Justus Winter, 2014/09/18
- [PATCH 2/8] ipc: implement mach_port_{set,clear}_protected_payload, Justus Winter, 2014/09/18
- [PATCH 4/8] include: define MACH_MSG_TYPE_PROTECTED_PAYLOAD, Justus Winter, 2014/09/18
- Re: [PATCH 4/8] include: define MACH_MSG_TYPE_PROTECTED_PAYLOAD,
Samuel Thibault <=
- [PATCH 3/8] include: add msgh_protected_payload to mach_msg_header_t, Justus Winter, 2014/09/18
- [PATCH 5/8] ipc: provide the protected payload in ipc_kmsg_copyout_header, Justus Winter, 2014/09/18
- [PATCH 6/8] include: add a payload-aware intran mutator for memory_object_t, Justus Winter, 2014/09/18
- [PATCH 7/8] include: add a payload-aware intran mutator for notify_port_t, Justus Winter, 2014/09/18
- [PATCH 8/8] include: add a payload-aware intran mutator for device_t, Justus Winter, 2014/09/18