MOS Source Code
Loading...
Searching...
No Matches
kthread.c File Reference
+ Include dependency graph for kthread.c:

Go to the source code of this file.

Classes

struct  kthread_arg_t
 

Functions

static void kthread_entry (void *arg)
 
void kthread_init (void)
 
thread_tkthread_create (thread_entry_t entry, void *arg, const char *name)
 Create a kernel-mode thread.
 
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.
 

Variables

static process_tkthreadd = NULL
 

Function Documentation

◆ kthread_entry()

static void kthread_entry ( void * arg)
static

Definition at line 21 of file kthread.c.

Referenced by kthread_create_no_sched().

+ Here is the call graph for this function:

◆ 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()

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:

Variable Documentation

◆ kthreadd

process_t* kthreadd = NULL
static

Definition at line 13 of file kthread.c.

Referenced by kthread_create_no_sched(), and kthread_init().