函数逻辑报告

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_fn

函数原型:static enum hrtimer_restart io_timeout_fn(struct hrtimer *timer)

返回类型:enum hrtimer_restart

参数:

类型参数名称
struct hrtimer *timer
2799  data等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(timer, structio_timeout_data, timer)
2801  req等于req
2802  ctx等于ctx
2805  atomic_inc( & cq_timeouts)
2807  spin_lock_irqsave( & completion_lock, flags)
2812  如果非链表为空
2821  prev等于req
2822  list_for_each_entry_continue_reverse - iterate backwards from the given point*@pos: the type * to use as a loop cursor(prev, & timeout_list, list)
2823  sequence自加
2824  删除链表项并重新初始化
2827  io_cqring_fill_event(req, - ETIME)
2828  io_commit_cqring(ctx)
2829  spin_unlock_irqrestore( & completion_lock, flags)
2831  io_cqring_ev_posted(ctx)
2832  req_set_fail_links(req)
2833  io_put_req(req)
2834  返回:Timer is not restarted