diff options
author | Luca Dariz <luca@orpolo.org> | 2023-01-16 11:58:57 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-18 02:31:51 +0100 |
commit | fc6bcf785b702e7e8a675ea0fe9856cc1b24b8f6 (patch) | |
tree | 23e99832f6ea6dc52bf7f6fdb137d58218410773 /ipc/ipc_marequest.c | |
parent | f056fcda8bf9a5c375b20ef3803718187d9d4211 (diff) | |
download | gnumach-fc6bcf785b702e7e8a675ea0fe9856cc1b24b8f6.tar.gz gnumach-fc6bcf785b702e7e8a675ea0fe9856cc1b24b8f6.tar.bz2 gnumach-fc6bcf785b702e7e8a675ea0fe9856cc1b24b8f6.zip |
replace mach_port_t with mach_port_name_t
This is a cleanup following the introduction of mach_port_name_t.
The same set of changes is applied to all files:
- rename mach_port_t to mach_port_name_t where a port name is used,
- use MACH_PORT_NAME_NULL and MACH_PORT_NAME_DEAD where appropriate,
- use invalid_port_to_name() and invalid_name_to_port() for conversion
where appropriate,
- use regular copyout() insted of copyout_port() when we deal with
mach_port_name_t already before copyout,
- use the new helper ipc_kmsg_copyout_object_to_port() when we really
want to place a port name in the space of a mach_port_t.
* include/mach/notify.h: Likewise
* ipc/ipc_entry.c: Likewise
* ipc/ipc_kmsg.c: Likewise
* ipc/ipc_kmsg.h: Likewise, and add ipc_kmsg_copyout_object_to_port()
* ipc/ipc_marequest.c: Likewise
* ipc/ipc_object.c: Likewise
* ipc/ipc_port.c: Likewise
* ipc/ipc_space.h: Likewise
* ipc/mach_msg.c: Likewise
* ipc/mach_port.c: Likewise
* kern/exception.c: Likewise
* kern/ipc_mig.c: Likewise
Message-Id: <20230116105857.240210-8-luca@orpolo.org>
Diffstat (limited to 'ipc/ipc_marequest.c')
-rw-r--r-- | ipc/ipc_marequest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/ipc_marequest.c b/ipc/ipc_marequest.c index 526e4722..c096fe24 100644 --- a/ipc/ipc_marequest.c +++ b/ipc/ipc_marequest.c @@ -279,7 +279,7 @@ ipc_marequest_cancel( *last = marequest->imar_next; imarb_unlock(bucket); - marequest->imar_name = MACH_PORT_NULL; + marequest->imar_name = MACH_PORT_NAME_NULL; } /* @@ -377,7 +377,7 @@ ipc_marequest_destroy(ipc_marequest_t marequest) entry->ie_bits &= ~IE_BITS_MAREQUEST; } else - name = MACH_PORT_NULL; + name = MACH_PORT_NAME_NULL; } is_write_unlock(space); |