函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:create_page_buffers

函数原型:static struct buffer_head *create_page_buffers(struct page *page, struct inode *inode, unsigned int b_state)

返回类型:struct buffer_head

参数:

类型参数名称
struct page *page
struct inode *inode
unsigned intb_state
1672  BUG_ON(!PageLocked(page))
1674  如果非page_has_buffers(page)则We attach and possibly dirty the buffers atomically wrt* __set_page_dirty_buffers() via private_lock. try_to_free_buffers* is already excluded via the page lock.
1677  返回:If we *know* page->private refers to buffer_heads (page)
调用者
名称描述
__block_write_full_pageWhile block_write_full_page is writing back the dirty buffers under* the page lock, whoever dirtied the buffers may decide to clean them* again at any time
__block_write_begin_int
block_read_full_pageGeneric "read page" function for block devices that have the normal* get_block functionality