函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-29 10:54:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:After the iocb has been issued, it's safe to be found on the poll list.* Adding the kiocb to the list AFTER submission ensures that we don't* find it from a io_iopoll_getevents() thread before the issuer is done* accessing the kiocb cookie.

函数原型:static void io_iopoll_req_issued(struct io_kiocb *req)

返回类型:void

参数:

类型参数名称
struct io_kiocb *req
1412  ctx等于ctx
1419  如果链表为空
1420  poll_multi_file = false
1421  否则如果非poll_multi_file
1424  list_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.( & * ->poll_list is protected by the ctx->uring_lock for * io_uring instances that don't use IORING_SETUP_SQPOLL. * For SQPOLL, only the single threaded io_sq_thread() will * manipulate the list, hence no extra locking is needed there., structio_kiocb, list)
1426  如果file不等于filepoll_multi_file = true
1434  如果flags按位与polled IO has completed 添加链表项
1436  否则添加链表项
调用者
名称描述
io_issue_sqe