函数逻辑报告 |
Source Code:fs\eventpoll.c |
Create Date:2022-07-29 10:50:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:p_scan_ready_list - Scans the ready list in a way that makes possible for* the scan code, to call f_op->poll(). Also allows for* O(NumReady) performance.*@ep: Pointer to the epoll private data structure.*@sproc: Pointer to the scan callback.
函数原型:static __poll_t ep_scan_ready_list(struct eventpoll *ep, __poll_t (*sproc)(struct eventpoll *, struct list_head *, void *), void *priv, int depth, bool ep_locked)
返回类型:__poll_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct eventpoll * | ep | |
__poll_t (* | sproc | |
void * | priv | |
int | depth | |
bool | ep_locked |
691 | 加入二个链表项并重新初始化 |
692 | WRITE_ONCE(* This is a single linked list that chains all the "struct epitem" that * happened while transferring ready events to userspace w/out * holding ->lock., NULL) |
719 | 添加链表项 |
728 | WRITE_ONCE(* This is a single linked list that chains all the "struct epitem" that * happened while transferring ready events to userspace w/out * holding ->lock., EP_UNACTIVE_PTR) |
733 | 为栈加入第二个链表项 |
740 | 返回:res |
名称 | 描述 |
---|---|
ep_item_poll | Differs from ep_eventpoll_poll() in that internal callers already have* the ep->mtx so we need to start from depth=1, such that mutex_lock_nested()* is correctly annotated. |
ep_eventpoll_poll | |
ep_send_events |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |