Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/common/
Dkthread.h17 int (*thread_fn)(void *); member
24 struct process_control_block *kthread_create_on_node(int (*thread_fn)(void *data),
38 #define kthread_create(thread_fn, data, name_fmt, arg...) \ argument
39 kthread_create_on_node(thread_fn, data, NUMA_NO_NODE, name_fmt, ##arg)
49 #define kthread_run(thread_fn, data, name_fmt, ...) … argument
51 … struct process_control_block *__kt = kthread_create(thread_fn, data, name_fmt, ##__VA_ARGS__); \
/DragonOS-0.1.2/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.2/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, ...)`