kernel: handle: rename handle transfer mode constants
This commit is contained in:
+4
-4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user