函数逻辑报告

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

函数名称:Find and free completed poll iocbs

函数原型:static void io_iopoll_complete(struct io_ring_ctx *ctx, unsigned int *nr_events, struct list_head *done)

返回类型:void

参数:

类型参数名称
struct io_ring_ctx *ctx
unsigned int *nr_events
struct list_head *done
1169  to_free等于0
1170  当非链表为空循环
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  删除链表项
1174  io_cqring_fill_event(req, result)
1175  nr_events自加
1183  如果flags按位与ctx owns file 按位或linked sqes 的值的值恒等于ctx owns file 且非io_is_fallback_req(req)且非io
1189  否则
1190  io_free_req(req)
1195  io_commit_cqring(ctx)
1196  io_free_req_many(ctx, reqs, & to_free)
调用者
名称描述
io_do_iopoll