Function report |
Source Code:kernel\kthread.c |
Create Date:2022-07-28 09:30:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__kthread_create_worker
Proto:static __printf(3, 0) struct kthread_worker *__kthread_create_worker(int cpu, unsigned int flags, const char namefmt[], va_list args)
Type:struct kthread_worker
Parameter:
Type | Parameter | Name |
---|---|---|
int | cpu | |
unsigned int | flags | |
const char | namefmt | |
va_list | args |
687 | node = NUMA_NO_NODE |
689 | worker = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
695 | If cpu >= 0 Then node = cpu_to_node(cpu) |
703 | If cpu >= 0 Then kthread_bind - bind a just-created kthread to a cpu |
708 | wake_up_process(task) |
709 | Return worker |
711 | fail_task : |
Name | Describe |
---|---|
kthread_create_worker | kthread_create_worker - create a kthread worker*@flags: flags modifying the default behavior of the worker*@namefmt: printf-style name for the kthread worker (task) |
kthread_create_worker_on_cpu | kthread_create_worker_on_cpu - create a kthread worker and bind it* it to a given CPU and the associated NUMA node |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |