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:Find and free completed poll iocbs

Proto:static void io_iopoll_complete(struct io_ring_ctx *ctx, unsigned int *nr_events, struct list_head *done)

Type:void

Parameter:

TypeParameterName
struct io_ring_ctx *ctx
unsigned int *nr_events
struct list_head *done
1169  to_free = 0
1170  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
1171  req = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.(done, structio_kiocb, list)
1172  deletes entry from list
1174  io_cqring_fill_event(req, result)
1175  nr_events++
1183  If (flags & (ctx owns file | linked sqes )) == ctx owns file && Not io_is_fallback_req(req) && Not io Then
1189  Else
1190  io_free_req(req)
1195  io_commit_cqring(ctx)
1196  io_free_req_many(ctx, reqs, & to_free)
Caller
NameDescribe
io_do_iopoll