函数逻辑报告 |
Source Code:fs\eventpoll.c |
Create Date:2022-07-29 10:50:55 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:This is the callback that is passed to the wait queue wakeup* mechanism
函数原型:static int ep_poll_callback(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| wait_queue_entry_t * | wait | |
| unsigned | mode | |
| int | sync | |
| void * | key |
| 1188 | pwake等于0 |
| 1191 | pollflags等于key_to_poll(key) |
| 1193 | ewake等于0 |
| 1197 | ep_set_busy_poll_napi_id(epi) |
| 1205 | 如果非events按位与Epoll private bits inside the event mask 的反的值则转到:out_unlock |
| 1214 | 如果pollflags且非pollflags按位与events的值则转到:out_unlock |
| 1227 | 转到:out_unlock |
| 1257 | wake_up( & Wait queue used by sys_epoll_wait() ) |
| 1262 | out_unlock : |
| 1266 | 如果pwake则ep_poll_safewake( & Wait queue used by file->poll() ) |
| 1269 | 如果非events按位与Set exclusive wakeup mode for the target file descriptor 的值则ewake等于1 |
| 1278 | 删除链表项并重新初始化 |
| 1288 | 返回:ewake |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |