| Function report | 
| Source Code: kernel\kthread.c | Create Date:2022-07-28 09:30:20 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:kthread_park - park a thread created by kthread_create()
Proto:int kthread_park(struct task_struct *k)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | k | 
| 505 | kthread = to_kthread(k) | 
| 507 | If WARN_ON( Per task flags (PF_*), defined further below: & Getting shut down ) Then Return -ENOSYS | 
| 510 | If WARN_ON_ONCE(st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from) Then Return -EBUSY | 
| 514 | If k != current process Then | 
| 515 | wake_up_process(k) | 
| 520 | wait_for_completion( & parked) | 
| 528 | Return 0 | 
| Name | Describe | 
|---|---|
| __smpboot_create_thread | |
| smpboot_park_thread | |
| stop_machine_park | 
| 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 |