Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-28 20:22:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static int io_iopoll_getevents(struct io_ring_ctx *ctx, unsigned int *nr_events, long min)

Type:int

Parameter:

TypeParameterName
struct io_ring_ctx *ctx
unsigned int *nr_events
longmin
1252  When Not list_empty - tests whether a list is empty*@head: the list to test. && Not need_resched() cycle
1255  ret = io_do_iopoll(ctx, nr_events, min)
1256  If ret < 0 Then Return ret
1258  If Not min || nr_events >= min Then Return 0
1262  Return 1
Caller
NameDescribe
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