函数逻辑报告 |
Source Code:fs\io_uring.c |
Create Date:2022-07-29 10:54:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:io_iopoll_check
函数原型:static int io_iopoll_check(struct io_ring_ctx *ctx, unsigned *nr_events, long min)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct io_ring_ctx * | ctx | |
unsigned * | nr_events | |
long | min |
1299 | mutex_lock( & uring_lock) |
1300 | 循环 |
1301 | tmin等于0 |
1308 | 如果io_cqring_events(ctx, false)则退出 |
1321 | 如果非iters先自加按位与7的值则 |
1323 | mutex_lock( & uring_lock) |
1329 | ret等于Poll for a minimum of 'min' events. Note that if min == 0 we consider that a* non-spinning poll check - we'll still enter the driver poll loop, but only* as a non-spinning completion check. |
1332 | ret等于0 |
1333 | 当min且非nr_events且非need_resched()循环 |
1336 | 返回:ret |
名称 | 描述 |
---|---|
SYSCALL_DEFINE6 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |