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
5
#include <
mos/platform/platform.h
>
6
7
void
kthread_init
(
void
);
8
17
thread_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
);
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.
Definition
kthread.c:43
kthread_create
thread_t * kthread_create(thread_entry_t entry, void *arg, const char *name)
Create a kernel-mode thread.
Definition
kthread.c:36
kthread_init
void kthread_init(void)
Definition
kthread.c:29
__nodiscard
#define __nodiscard
Definition
mos_global.h:35
platform.h
name
const char * name
Definition
slab.c:31
thread_t
Definition
task_types.h:75
thread_entry_t
void(* thread_entry_t)(void *arg)
Definition
types.h:109
kernel
include
private
mos
tasks
kthread.h
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0