Function report |
Source Code:kernel\sched\swait.c |
Create Date:2022-07-28 09:41:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:prepare_to_swait_event
Proto:long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
struct swait_queue_head * | q | |
struct swait_queue * | wait | |
int | state |
93 | ret = 0 |
95 | raw_spin_lock_irqsave( & lock, flags) |
96 | If signal_pending_state(state, current process) Then |
103 | Else |
104 | __prepare_to_swait(q, wait) |
105 | set_current_state(state) |
107 | raw_spin_unlock_irqrestore( & lock, flags) |
109 | Return ret |
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 |