函数逻辑报告

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

函数名称: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.

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

返回类型:int

参数:

类型参数名称
struct io_ring_ctx *ctx
unsigned int *nr_events
longmin
1252  当非链表为空且非need_resched()循环
1255  ret等于io_do_iopoll(ctx, nr_events, min)
1256  如果ret小于0则返回:ret
1258  如果非minnr_events大于等于min则返回:0
1262  返回:1
调用者
名称描述
io_iopoll_reap_eventsWe can't just wait for polled events to come to us, we have to actively* find and complete them.
io_iopoll_check
io_sq_thread