Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_timeout_prep

Proto:static int io_timeout_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe, bool is_timeout_link)

Type:int

Parameter:

TypeParameterName
struct io_kiocb *req
const struct io_uring_sqe *sqe
boolis_timeout_link
2906  If Value for the false possibility is greater at compile time(flags & _context is polled ) Then Return -EINVAL
2908  If prio for the request || dex into fixed buffers, if used || uffer size or number of iovecs != 1 Then Return -EINVAL
2910  If ffset into file && is_timeout_link Then Return -EINVAL
2912  flags = READ_ONCE(timeout_flags)
2913  If flags & ~sqe->timeout_flags Then Return -EINVAL
2916  count = READ_ONCE(ffset into file )
2918  If Not io && io_alloc_async_ctx(req) Then Return -ENOMEM
2921  data = timeout
2922  req = req
2923  flags |= imeout request
2925  If get_timespec64( & ts, u64_to_user_ptr(pointer to buffer or iovecs )) Then Return -EFAULT
2928  If flags & sqe->timeout_flags Then mode = Time value is absolute
2930  Else mode = Time value is relative to now
2933  hrtimer_init - initialize a timer to the given clock*@timer: the timer to be initialized*@clock_id: the clock to be used*@mode: The modes which are relevant for intitialization:* HRTIMER_MODE_ABS, HRTIMER_MODE_REL, HRTIMER_MODE_ABS_SOFT,*
2934  Return 0
Caller
NameDescribe
io_req_defer_prep
io_issue_sqe