函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-29 10:45:11
Last Modify:2020-03-18 10:38:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Initialise the state of a blockdev page's buffers.

函数原型:static sector_t init_page_buffers(struct page *page, struct block_device *bdev, sector_t block, int size)

返回类型:sector_t

参数:

类型参数名称
struct page *page
struct block_device *bdev
sector_tblock
intsize
937  head等于If we *know* page->private refers to buffer_heads (page)
938  bh等于head
939  uptodate等于PageUptodate(page)
940  end_block等于blkdev_max_block(I_BDEV( will die ), size)
942  循环
943  如果非buffer_mapped(bh)则
944  I/O completion = NULL
946  b_bdev等于bdev
950  如果block小于end_blockset_buffer_mapped(bh)
953  block自加
954  bh等于 circular list of page's buffers
955 bh不等于head循环
960  返回:end_block
调用者
名称描述
grow_dev_pageCreate the page-cache page that contains the requested block.* This is used purely for blockdev mappings.