Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blkdev_direct_IO

Proto:static ssize_t blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter)

Type:ssize_t

Parameter:

TypeParameterName
struct kiocb *iocb
struct iov_iter *iter
470  nr_pages = iov_iter_npages(iter, BIO_MAX_PAGES + 1)
471  If Not nr_pages Then Return 0
473  If is_sync_kiocb(iocb) && nr_pages <= BIO_MAX_PAGES Then Return __blkdev_direct_IO_simple(iocb, iter, nr_pages)
476  Return __blkdev_direct_IO(iocb, iter, min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(nr_pages, BIO_MAX_PAGES))