函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Attempt to put the current chunk of 'cur_page' into the current BIO. If* that was successful then update final_block_in_bio and take a ref against* the just-added page.* Return zero on success. Non-zero means the caller needs to start a new BIO.

函数原型:static inline int dio_bio_add_page(struct dio_submit *sdio)

返回类型:int

参数:

类型参数名称
struct dio_submit *sdio
734  ret等于bio_add_page( under assembly , The page , Nr of bytes at cur_page_offset , Offset into it, in bytes )
736  如果ret恒等于Nr of bytes at cur_page_offset
740  如果Nr of bytes at cur_page_offset Offset into it, in bytes 恒等于PAGE_SIZEapproximate total IO pages 自减
742  get_page(The page )
743  current final block in bio + 1 等于Where it starts Nr of bytes at cur_page_offset 右移doesn't change 位的值
745  ret等于0
746  否则
747  ret等于1
749  返回:ret
调用者
名称描述
dio_send_cur_pagePut cur_page under IO