函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:io_timeout_prep

函数原型:static int io_timeout_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe, bool is_timeout_link)

返回类型:int

参数:

类型参数名称
struct io_kiocb *req
const struct io_uring_sqe *sqe
boolis_timeout_link
2906  如果此条件成立可能性小(为编译器优化)(flags & _context is polled )则返回:负EINVAL
2908  如果prio for the request dex into fixed buffers, if used uffer size or number of iovecs 不等于1则返回:负EINVAL
2910  如果ffset into file is_timeout_link则返回:负EINVAL
2912  flags等于READ_ONCE(timeout_flags)
2913  如果flags按位与sqe->timeout_flags的反则返回:负EINVAL
2916  count等于READ_ONCE(ffset into file )
2918  如果非ioio_alloc_async_ctx(req)则返回:负ENOMEM
2921  data等于timeout
2922  req等于req
2923  flags或等于imeout request
2925  如果get_timespec64( & ts, u64_to_user_ptr(pointer to buffer or iovecs ))则返回:负EFAULT
2928  如果flags按位与sqe->timeout_flagsmode等于 Time value is absolute
2930  否则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  返回:0
调用者
名称描述
io_req_defer_prep
io_issue_sqe