Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_link_timeout_fn

Proto:static enum hrtimer_restart io_link_timeout_fn(struct hrtimer *timer)

Type:enum hrtimer_restart

Parameter:

TypeParameterName
struct hrtimer *timer
3460  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)
3462  req = req
3463  ctx = ctx
3464  struct io_kiocb * prev = NULL
3467  spin_lock_irqsave( & completion_lock, flags)
3473  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
3474  prev = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(prev, structio_kiocb, link_list)
3479  Else prev = NULL
3483  spin_unlock_irqrestore( & completion_lock, flags)
3485  If prev Then
3486  req_set_fail_links(prev)
3487  io_async_find_and_cancel(ctx, req, user_data, NULL, - ETIME)
3489  io_put_req(prev)
3490  Else
3491  io_cqring_add_event(req, - ETIME)
3492  io_put_req(req)
3494  Return Timer is not restarted