sched: task: optional handle_table pointer can now be passed to task_create
This commit is contained in:
+5
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user