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_write

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

Type:int

Parameter:

TypeParameterName
struct kiocb *req
const struct iocb *iocb
boolvectored
boolcompat
1551  iovec = inline_vecs
1556  ret = aio_prep_rw(req, iocb)
1557  If ret Then Return ret
1559  file = ki_filp
1561  If Value for the false possibility is greater at compile time(!(f_mode & le is open for writing )) Then Return -EBADF
1563  If Value for the false possibility is greater at compile time(!write_iter) Then Return -EINVAL
1566  ret = aio_setup_rw(WRITE, iocb, & iovec, vectored, compat, & iter)
1567  If ret < 0 Then Return ret
1569  ret = rw_verify_area(WRITE, file, & The 'ki_filp' pointer is shared in a union for aio , iov_iter_count( & iter))
1570  If Not ret Then
1578  If S_ISREG(i_mode) Then
1582  ki_flags |= IOCB_WRITE
1583  aio_rw_done(req, call_write_iter(file, req, & iter))
1585  kfree(iovec)
1586  Return ret
Caller
NameDescribe
__io_submit_one