MOS Source Code
|
#include "mos/tasks/schedule.h"
#include <mos/lib/structures/hashmap.h>
#include <mos/syslog/printk.h>
#include <mos/tasks/kthread.h>
#include <mos/tasks/process.h>
#include <mos/tasks/task_types.h>
#include <mos/tasks/thread.h>
#include <mos_stdlib.h>
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_t * | kthread_create (thread_entry_t entry, void *arg, const char *name) |
Create a kernel-mode thread. | |
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. | |
Variables | |
static process_t * | kthreadd = NULL |
Definition at line 21 of file kthread.c.
Referenced by kthread_create_no_sched().
Definition at line 29 of file kthread.c.
Referenced by mos_start_kernel().
thread_t * kthread_create | ( | thread_entry_t | entry, |
void * | arg, | ||
const char * | name ) |
Create a kernel-mode thread.
entry | The entry point of the thread |
arg | The argument to pass to the thread |
name | The name of the thread |
Definition at line 36 of file kthread.c.
Referenced by userfs_manager_rpc_init().
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.
entry | The entry point of the thread |
arg | The argument to pass to the thread |
name | The name of the thread |
Definition at line 43 of file kthread.c.
Referenced by create_idle_task(), and kthread_create().
Definition at line 13 of file kthread.c.
Referenced by kthread_create_no_sched(), and kthread_init().