Function report |
Source Code:fs\eventpoll.c |
Create Date:2022-07-28 20:19:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This is the callback that is passed to the wait queue wakeup* mechanism
Proto:static int ep_poll_callback(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
wait_queue_entry_t * | wait | |
unsigned | mode | |
int | sync | |
void * | key |
1188 | pwake = 0 |
1190 | ep = The "container" of this item |
1191 | pollflags = key_to_poll(key) |
1193 | ewake = 0 |
1197 | ep_set_busy_poll_napi_id(epi) |
1205 | If Not (events & ~Epoll private bits inside the event mask ) Then Go to out_unlock |
1214 | If pollflags && Not (pollflags & events) Then Go to out_unlock |
1227 | Go to out_unlock |
1241 | If events & Set exclusive wakeup mode for the target file descriptor && Not (pollflags & POLLFREE) Then |
1244 | Case & == Epoll event masks |
1245 | If events & Epoll event masks Then ewake = 1 |
1247 | Break |
1248 | Case & == EPOLLOUT |
1252 | Case & == 0 |
1253 | ewake = 1 |
1254 | Break |
1257 | wake_up( & Wait queue used by sys_epoll_wait() ) |
1262 | out_unlock : |
1266 | If pwake Then ep_poll_safewake( & Wait queue used by file->poll() ) |
1269 | If Not (events & Set exclusive wakeup mode for the target file descriptor ) Then ewake = 1 |
1288 | Return ewake |
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 |