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_prep_rw

Proto:static int aio_prep_rw(struct kiocb *req, const struct iocb *iocb)

Type:int

Parameter:

TypeParameterName
struct kiocb *req
const struct iocb *iocb
1449  ki_complete = aio_complete_rw
1450  private = NULL
1451  The 'ki_filp' pointer is shared in a union for aio = aio_offset
1452  ki_flags = iocb_flags(ki_filp)
1453  If lags for the "struct iocb" & Valid flags for the"aio_flags" member of the"struct iocb" Then ki_flags |= IOCB_EVENTFD
1455  ki_hint = ki_hint_validate(file_write_hint(ki_filp))
1456  If lags for the "struct iocb" & IOCB_FLAG_IOPRIO Then
1462  ret = ioprio_check_cap(aio_reqprio)
1463  If ret Then
1464  pr_debug("aio ioprio check cap error: %d\n", ret)
1465  Return ret
1468  See linux/ioprio.h = aio_reqprio
1469  Else See linux/ioprio.h = If the calling process has set an I/O priority, use that. Otherwise, return* the default I/O priority.
1472  ret = kiocb_set_rw_flags(req, RWF_* flags )
1473  If Value for the false possibility is greater at compile time(ret) Then Return ret
1476  ki_flags &= ~IOCB_HIPRI
1477  Return 0
Caller
NameDescribe
aio_read
aio_write