Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aio_read

Proto:static int aio_read(struct kiocb *req, const struct iocb *iocb, bool vectored, bool compat)

Type:int

Parameter:

TypeParameterName
struct kiocb *req
const struct iocb *iocb
boolvectored
boolcompat
1523  iovec = inline_vecs
1528  ret = aio_prep_rw(req, iocb)
1529  If ret Then Return ret
1531  file = ki_filp
1532  If Value for the false possibility is greater at compile time(!(f_mode & le is open for reading )) Then Return -EBADF
1534  ret = -EINVAL
1535  If Value for the false possibility is greater at compile time(!read_iter) Then Return -EINVAL
1538  ret = aio_setup_rw(generic data direction definitions , iocb, & iovec, vectored, compat, & iter)
1539  If ret < 0 Then Return ret
1541  ret = rw_verify_area(generic data direction definitions , file, & The 'ki_filp' pointer is shared in a union for aio , iov_iter_count( & iter))
1542  If Not ret Then aio_rw_done(req, call_read_iter(file, req, & iter))
1544  kfree(iovec)
1545  Return ret
Caller
NameDescribe
__io_submit_one