Function report | 
Source Code:kernel\sched\core.c | 
Create Date:2022-07-28 09:35:43 | 
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:ry_to_wake_up - wake up a thread*@p: the thread to be awakened*@state: the mask of task states that can be woken*@wake_flags: wake modifier flags (WF_*)* If (@state & @p->state) @p->state = TASK_RUNNING.
Proto:static int try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | p | |
| unsigned int | state | |
| int | wake_flags | 
| 2521 | success = 0 | 
| 2524 | If p == current process Then | 
| 2561 | success = 1 | 
| 2584 | smp_rmb() | 
| 2638 | If in_iowait Then | 
| 2639 | delayacct_blkio_end(p) | 
| 2640 | atomic_dec( & nr_iowait) | 
| 2645 | ttwu_queue(p, cpu, wake_flags) | 
| 2646 | unlock : | 
| 2648 | out : | 
| 2649 | If success Then ttwu_stat(p, cpu, wake_flags) | 
| 2651 | preempt_enable() | 
| 2653 | Return success | 
| Name | Describe | 
|---|---|
| wake_up_process | wake_up_process - Wake up a specific process*@p: The process to be woken up.* Attempt to wake up the nominated process and move it to the set of runnable* processes.* Return: 1 if the process was woken up, 0 if it was already running. | 
| wake_up_state | |
| default_wake_function | 
| 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  |