Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_import_fixed

Proto:static ssize_t io_import_fixed(struct io_kiocb *req, int rw, struct iov_iter *iter)

Type:ssize_t

Parameter:

TypeParameterName
struct io_kiocb *req
intrw
struct iov_iter *iter
1592  ctx = ctx
1593  len = len
1600  If Value for the false possibility is greater at compile time(!user_bufs) Then Return -EFAULT
1603  buf_index = private
1604  If Value for the false possibility is greater at compile time(buf_index >= if used, fixed mapped user buffers ) Then Return -EFAULT
1607  index = array_index_nospec - sanitize an array index after a bounds check* For a code sequence like:* if (index < size) {* index = array_index_nospec(index, size);* val = array[index];* }* (buf_index, if used, fixed mapped user buffers )
1608  imu = user_bufs[index]
1609  buf_addr = addr
1612  If buf_addr + len < buf_addr Then Return -EFAULT
1615  If buf_addr < ubuf || buf_addr + len > ubuf + len Then Return -EFAULT
1622  offset = buf_addr - ubuf
1623  iov_iter_bvec(iter, rw, bvec, nr_bvecs, offset + len)
1625  If offset Then
1642  bvec = bvec
1644  If offset <= bv_len Then
1646  Else
1650  offset -= bv_len
1653  bvec = bvec + seg_skip
1654  nr_segs -= seg_skip
1655  count -= bv_len + offset
1660  Return len
Caller
NameDescribe
io_import_iovec