From 9001f8e064b5e147797010fbd06fe043b986dd46 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 29 Mar 2026 11:48:31 +0100 Subject: [PATCH] kernel: handle: rename handle transfer mode constants --- kernel/handle.c | 8 ++++---- libmango/include/mango/types.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/handle.c b/kernel/handle.c index 8195afd..fd043ac 100644 --- a/kernel/handle.c +++ b/kernel/handle.c @@ -341,9 +341,9 @@ kern_status_t handle_table_transfer( } switch (src_handle.hnd_mode) { - case KERN_MSG_HANDLE_IGNORE: + case HANDLE_TRANSFER_IGNORE: break; - case KERN_MSG_HANDLE_MOVE: + case HANDLE_TRANSFER_MOVE: status = handle_table_alloc_handle( dst, KERN_HANDLE_INVALID, @@ -363,7 +363,7 @@ kern_status_t handle_table_transfer( dst_handle.hnd_value = dst_value; dst_handle.hnd_result = KERN_OK; break; - case KERN_MSG_HANDLE_COPY: + case HANDLE_TRANSFER_COPY: status = handle_table_alloc_handle( dst, KERN_HANDLE_INVALID, @@ -413,7 +413,7 @@ kern_status_t handle_table_transfer( &handle, NULL); - if (handle.hnd_mode != KERN_MSG_HANDLE_MOVE) { + if (handle.hnd_mode != HANDLE_TRANSFER_MOVE) { continue; } diff --git a/libmango/include/mango/types.h b/libmango/include/mango/types.h index 3ccfb17..4fc69dc 100644 --- a/libmango/include/mango/types.h +++ b/libmango/include/mango/types.h @@ -32,13 +32,13 @@ #define KERN_MSG_MAX_HANDLES 64 /* the corresponding handle should be ignored */ -#define KERN_MSG_HANDLE_IGNORE 0 +#define HANDLE_TRANSFER_IGNORE 0 /* the corresponding handle should be moved to the recipient task. the handle * will be closed. */ -#define KERN_MSG_HANDLE_MOVE 1 +#define HANDLE_TRANSFER_MOVE 1 /* the corresponding handle should be copied to the recipient task. the handle * will remain valid for the sending task. */ -#define KERN_MSG_HANDLE_COPY 2 +#define HANDLE_TRANSFER_COPY 2 /* maximum number of objects that can be waited on in a single call to * kern_object_wait */