Home
last modified time | relevance | path

Searched refs:thread_fn (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.5/kernel/src/common/
Dkthread.h17 int (*thread_fn)(void *); member
24 struct process_control_block *kthread_create_on_node(int (*thread_fn)(void *data), void *data, int …
36 #define kthread_create(thread_fn, data, name_fmt, arg...) … argument
37 kthread_create_on_node(thread_fn, data, NUMA_NO_NODE, name_fmt, ##arg)
47 #define kthread_run(thread_fn, data, name_fmt, ...) … argument
49 … struct process_control_block *__kt = kthread_create(thread_fn, data, name_fmt, ##__VA_ARGS__); \
63 #define kthread_run_rt(thread_fn, data, name_fmt, ...) … argument
65 …struct process_control_block *__kt = kthread_create(thread_fn, data, name_fmt, ##__VA_ARGS__); …
/DragonOS-0.1.5/kernel/src/process/
Dkthread.c27 int (*thread_fn)(void *data); member
50 static struct process_control_block *__kthread_create_on_node(int (*thread_fn)(void *data), void *d… in __kthread_create_on_node()
60 create->thread_fn = thread_fn; in __kthread_create_on_node()
137 struct process_control_block *kthread_create_on_node(int (*thread_fn)(void *data), void *data, int … in kthread_create_on_node()
143 pcb = __kthread_create_on_node(thread_fn, data, node, name_fmt, args); in kthread_create_on_node()
157 int (*thread_fn)(void *data) = create->thread_fn; in kthread() local
164 self->thread_fn = thread_fn; in kthread()
186 retval = thread_fn(data); in kthread()
/DragonOS-0.1.5/docs/kernel/process_management/
Dkthread.md23   `kthread_create(thread_fn, data, name_fmt, arg...)`
33 **thread_fn**
39   传递给 *thread_fn* 的参数数据
57   `kthread_run(thread_fn, data, name_fmt, ...)`
69   `kthread_run_rt(thread_fn, data, name_fmt, ...)`