Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-28 20:22:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:io_timeout_cancel

Proto:static int io_timeout_cancel(struct io_ring_ctx *ctx, __u64 user_data)

Type:int

Parameter:

TypeParameterName
struct io_ring_ctx *ctx
__u64user_data
2840  ret = -ENOENT
2843  If user_data == user_data Then
2844  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
2845  ret = 0
2846  Break
2850  If ret == -ENOENT Then Return 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  If ret == -1 Then Return -EALREADY
2857  req_set_fail_links(req)
2858  io_cqring_fill_event(req, - ECANCELED)
2859  io_put_req(req)
2860  Return 0
Caller
NameDescribe
io_timeout_removeRemove or update an existing timeout command
io_async_find_and_cancel