15typedef struct kthread_arg
24 kthread_arg->
entry(kthread_arg->
arg);
48 kthread_arg->
entry = entry;
49 kthread_arg->
arg = arg;
#define MOS_ASSERT_X(cond, msg,...)
MOSAPI void * hashmap_put(hashmap_t *map, uintn key, void *value)
void define_syscall thread_exit(void)
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.
static process_t * kthreadd
thread_t * kthread_create(thread_entry_t entry, void *arg, const char *name)
Create a kernel-mode thread.
static void kthread_entry(void *arg)
#define pr_dinfo2(feat, fmt,...)
process_t * process_allocate(process_t *parent, const char *name)
void scheduler_add_thread(thread_t *thread)
Add a thread to the scheduler, so that it can be scheduled.
thread_t * thread_complete_init(thread_t *thread)
thread_t * thread_new(process_t *owner, thread_mode mode, const char *name, size_t stack_size, void *stack)
void(* thread_entry_t)(void *arg)