MOS Source Code
Loading...
Searching...
No Matches
kthread.h File Reference
+ Include dependency graph for kthread.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void kthread_init (void)
 
thread_tkthread_create (thread_entry_t entry, void *arg, const char *name)
 Create a kernel-mode thread.
 
__nodiscard thread_tkthread_create_no_sched (thread_entry_t entry, void *arg, const char *name)
 Create a kernel thread, but do not add it to the scheduler.
 

Function Documentation

◆ kthread_init()

void kthread_init ( void )

Definition at line 29 of file kthread.c.

Referenced by mos_start_kernel().

+ Here is the call graph for this function:

◆ kthread_create()

thread_t * kthread_create ( thread_entry_t entry,
void * arg,
const char * name )

Create a kernel-mode thread.

Parameters
entryThe entry point of the thread
argThe argument to pass to the thread
nameThe name of the thread
Returns
thread_t* The created thread

Definition at line 36 of file kthread.c.

Referenced by userfs_manager_rpc_init().

+ Here is the call graph for this function:

◆ kthread_create_no_sched()

__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.

Parameters
entryThe entry point of the thread
argThe argument to pass to the thread
nameThe name of the thread
Returns
thread_t* The created thread

Definition at line 43 of file kthread.c.

Referenced by create_idle_task(), and kthread_create().

+ Here is the call graph for this function: