diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-21 17:23:31 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-10-01 09:03:51 +0200 |
commit | c4baf67b71e20d1fdd2cc6bda1a2ea15e9853cdd (patch) | |
tree | b280ceb34166fc215377cbd8aeb2fc3e17586d07 /include | |
parent | d565bf2f784ce1203e77306d05eade03933bc523 (diff) |
ipc: implement mach_port_{set,clear}_protected_payload
* include/mach/mach_port.defs: Add mach_port_{set,clear}_protected_payload.
* ipc/mach_port.c: Implement mach_port_{set,clear}_protected_payload.
* doc/mach.texi (Receive Rights): Document
mach_port_{set,clear}_protected_payload.
Diffstat (limited to 'include')
-rw-r--r-- | include/mach/mach_port.defs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/mach/mach_port.defs b/include/mach/mach_port.defs index 769d892..c7e8526 100644 --- a/include/mach/mach_port.defs +++ b/include/mach/mach_port.defs @@ -349,3 +349,21 @@ skip; /* mach_port_create_act */ #endif /* MIGRATING_THREADS */ +/* + * Only valid for receive rights. + * Set the protected payload for this right to the given value. + */ + +routine mach_port_set_protected_payload( + task : ipc_space_t; + name : mach_port_name_t; + payload : natural_t); + +/* + * Only valid for receive rights. + * Clear the protected payload for this right. + */ + +routine mach_port_clear_protected_payload( + task : ipc_space_t; + name : mach_port_name_t); |