sched: task: optional handle_table pointer can now be passed to task_create

This commit is contained in:
2026-04-19 20:04:18 +01:00
parent b52890d842
commit 9a9b0f63ba
4 changed files with 19 additions and 6 deletions
+5 -2
View File
@@ -124,7 +124,7 @@ kern_status_t sys_task_create(
task_unlock_irqrestore(self, flags);
struct task *child = task_create(name, name_len);
struct task *child = task_create(name, name_len, NULL);
if (!child) {
object_unref(parent_obj);
@@ -493,7 +493,10 @@ kern_status_t sys_task_duplicate(
return status;
}
struct task *new_task = task_create(self->t_name, strlen(self->t_name));
struct task *new_task = task_create(
self->t_name,
strlen(self->t_name),
NULL);
if (!new_task) {
put_current_task(self);
return KERN_NO_MEMORY;