函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-27 16:35:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:split_page takes a non-compound higher-order page, and splits it into* n (1<<order) sub-pages: page[0..n]* Each sub-page must be freed individually.* Note: this is probably too low level an operation for use in drivers.

函数原型:void split_page(struct page *page, unsigned int order)

返回类型:void

参数:

类型参数名称
struct page *page
unsigned intorder
3118  VM_BUG_ON_PAGE(PageCompound(page), page)
3119  VM_BUG_ON_PAGE(!page_count(page), page)
3121 i小于1左移order循环Turn a non-refcounted page (->_refcount == 0) into refcounted with* a count of one.
3123  split_page_owner(page, order)
调用者
名称描述
make_alloc_exact
rb_alloc_aux_page
split_map_pages
ramfs_nommu_expand_for_mappingadd a contiguous set of pages into a ramfs inode when it's truncated from* size 0 on the assumption that it's going to be used for an mmap of shared* memory