kernel: handle: add support for allocating a specific handle value

This commit is contained in:
2026-03-29 11:47:22 +01:00
parent dfffb45e66
commit 537242e606
5 changed files with 63 additions and 3 deletions
+5 -2
View File
@@ -352,8 +352,11 @@ kern_status_t task_open_handle(
kern_handle_t *out)
{
struct handle *handle_data = NULL;
kern_status_t status
= handle_table_alloc_handle(task->t_handles, &handle_data, out);
kern_status_t status = handle_table_alloc_handle(
task->t_handles,
KERN_HANDLE_INVALID,
&handle_data,
out);
if (status != KERN_OK) {
return status;
}