Function report |
Source Code:kernel\sched\wait.c |
Create Date:2022-07-28 09:40:47 |
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_wait_event
Proto:long prepare_to_wait_event(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
struct wait_queue_head * | wq_head | |
struct wait_queue_entry * | wq_entry | |
int | state |
278 | ret = 0 |
280 | spin_lock_irqsave( & lock, flags) |
281 | If signal_pending_state(state, current process) Then |
296 | Else |
298 | If flags & wait_queue_entry::flags Then __add_wait_queue_entry_tail(wq_head, wq_entry) |
300 | Else __add_wait_queue(wq_head, wq_entry) |
303 | set_current_state(state) |
305 | spin_unlock_irqrestore( & lock, flags) |
307 | 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 |