Function report |
Source Code:kernel\sched\wait.c |
Create Date:2022-07-28 09:40:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:DEFINE_WAIT_FUNC(wait, woken_wake_func);* add_wait_queue(&wq_head, &wait);* for (;;) {* if (condition)* break;* // in wait_woken() // in woken_wake_function()* p->state = mode; wq_entry->flags |= WQ_FLAG_WOKEN;* smp_mb(); // A try_to_wake_up():* if
Proto:long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
struct wait_queue_entry * | wq_entry | >flags &= ~WQ_FLAG_WOKEN; ~~~~~~~~~~~~~~~~~~ |
unsigned | mode | |
long | timeout |
431 | set_current_state(mode) |
442 | smp_store_mb(flags, flags & ~WQ_FLAG_WOKEN) |
444 | Return timeout |
Name | Describe |
---|---|
fanotify_read |
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 |