函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-29 10:46:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blkdev_direct_IO

函数原型:static ssize_t blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter)

返回类型:ssize_t

参数:

类型参数名称
struct kiocb *iocb
struct iov_iter *iter
470  nr_pages等于iov_iter_npages(iter, BIO_MAX_PAGES + 1)
471  如果非nr_pages则返回:0
473  如果is_sync_kiocb(iocb)且nr_pages小于等于BIO_MAX_PAGES则返回:__blkdev_direct_IO_simple(iocb, iter, nr_pages)
476  返回:__blkdev_direct_IO(iocb, iter, 两数取小(nr_pages, BIO_MAX_PAGES))