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
+4 -1
View File
@@ -39,7 +39,10 @@ struct task {
extern struct task *task_alloc(void);
extern struct task *task_cast(struct object *obj);
extern struct task *task_create(const char *name, size_t name_len);
extern struct task *task_create(
const char *name,
size_t name_len,
struct handle_table *handles);
static inline struct task *task_ref(struct task *task)
{
return OBJECT_CAST(struct task, t_base, object_ref(&task->t_base));