函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:io_link_cancel_timeout

函数原型:static bool io_link_cancel_timeout(struct io_kiocb *req)

返回类型:bool

参数:

类型参数名称
struct io_kiocb *req
968  ctx等于ctx
971  ret等于hrtimer_try_to_cancel - try to deactivate a timer*@timer: hrtimer to stop* Returns:* * 0 when the timer was not active* * 1 when the timer was active* * -1 when the timer is currently executing the callback function and* cannot be stopped
972  如果ret不等于负1则
973  io_cqring_fill_event(req, - ECANCELED)
974  io_commit_cqring(ctx)
975  flags与等于linked sqes 的反
976  io_put_req(req)
977  返回:true
980  返回:false
调用者
名称描述
io_req_link_next
io_fail_linksCalled if REQ_F_LINK is set, and we fail the head request