函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-29 10:54:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:io_do_iopoll

函数原型:static int io_do_iopoll(struct io_ring_ctx *ctx, unsigned int *nr_events, long min)

返回类型:int

参数:

类型参数名称
struct io_ring_ctx *ctx
unsigned int *nr_events
longmin
1203  LIST_HEAD(done)
1211  spin等于非poll_multi_filenr_events小于min
1213  ret等于0
1215  kiocb等于 NOTE: kiocb has the file as the first member, so don't do it here
1222  如果flags按位与polled IO has completed
1223  链表项移动到尾部
1224  继续下一循环
1226  如果非链表为空退出
1229  ret等于iopoll(kiocb, spin)
1230  如果ret小于0则退出
1233  如果retspinspin = false
1235  ret等于0
1238  如果非链表为空Find and free completed poll iocbs
1241  返回:ret
调用者
名称描述
io_iopoll_geteventsPoll 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.