Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_do_iopoll

Proto:static int io_do_iopoll(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
1203  LIST_HEAD(done)
1211  spin = Not poll_multi_file && nr_events < min
1213  ret = 0
1215  kiocb = NOTE: kiocb has the file as the first member, so don't do it here
1222  If flags & polled IO has completed Then
1223  list_move_tail - delete from one list and add as another's tail*@list: the entry to move*@head: the head that will follow our entry
1224  Continue
1226  If Not list_empty - tests whether a list is empty*@head: the list to test. Then Break
1229  ret = iopoll(kiocb, spin)
1230  If ret < 0 Then Break
1233  If ret && spin Then spin = false
1235  ret = 0
1238  If Not list_empty - tests whether a list is empty*@head: the list to test. Then Find and free completed poll iocbs
1241  Return ret
Caller
NameDescribe
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.