MOS Source Code
Loading...
Searching...
No Matches
kthread.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
6
7void kthread_init(void);
8
17thread_t *kthread_create(thread_entry_t entry, void *arg, const char *name);
18
27__nodiscard thread_t *kthread_create_no_sched(thread_entry_t entry, void *arg, const char *name);
__nodiscard thread_t * kthread_create_no_sched(thread_entry_t entry, void *arg, const char *name)
Create a kernel thread, but do not add it to the scheduler.
Definition kthread.c:43
thread_t * kthread_create(thread_entry_t entry, void *arg, const char *name)
Create a kernel-mode thread.
Definition kthread.c:36
void kthread_init(void)
Definition kthread.c:29
#define __nodiscard
Definition mos_global.h:35
const char * name
Definition slab.c:31
void(* thread_entry_t)(void *arg)
Definition types.h:109