函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:io_timeout_cancel

函数原型:static int io_timeout_cancel(struct io_ring_ctx *ctx, __u64 user_data)

返回类型:int

参数:

类型参数名称
struct io_ring_ctx *ctx
__u64user_data
2840  ret等于负ENOENT
2843  如果user_data恒等于user_data
2844  删除链表项并重新初始化
2845  ret等于0
2846  退出
2850  如果ret恒等于负ENOENT则返回:ret
2853  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
2854  如果ret恒等于负1则返回:负EALREADY
2857  req_set_fail_links(req)
2858  io_cqring_fill_event(req, - ECANCELED)
2859  io_put_req(req)
2860  返回:0
调用者
名称描述
io_timeout_removeRemove or update an existing timeout command
io_async_find_and_cancel