函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_bh_page

函数原型:void set_bh_page(struct buffer_head *bh, struct page *page, unsigned long offset)

返回类型:void

参数:

类型参数名称
struct buffer_head *bh
struct page *page
unsigned longoffset
1443  the page this bh is mapped to 等于page
1444  BUG_ON(offset >= PAGE_SIZE)
1445  如果PageHighMem(page)则 pointer to data within the page 等于0加offset
1450  否则 pointer to data within the page 等于page_address(page)加offset
调用者
名称描述
alloc_page_buffersCreate the appropriate buffers when given a page for data area and* the size of each buffer