函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-27 06:44:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:virt_to_head_page

函数原型:static inline struct page *virt_to_head_page(const void *x)

返回类型:struct page

参数:

类型参数名称
const void *x
731  page等于virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(x)
733  返回:compound_head(page)
调用者
名称描述
free_resource
kobjsizeReturn the total memory allocated for this pointer, not* just what the caller asked for.* Doesn't have to be accurate, i.e. may have races.
page_frag_freeFrees a page fragment allocated out of either a compound or order 0 page.
free_blockCaller needs to acquire correct kmem_cache_node's list_lock*@list: List of detached free slabs should be freed by caller
___cache_free
kmem_cache_free
build_detached_freelistThis function progressively scans the array with free objects (with* a limited look ahead) and extract objects belonging to the same* page. It builds a detached freelist directly within the given* page/objects. This can happen without any need for
__ksize
kfree释放内存
__kasan_slab_free
kasan_krealloc
kasan_poison_kfree
kasan_kfree_large
kasan_addr_to_page
qlink_to_cache
__mod_lruvec_slab_state
io_mem_free
io_uring_validate_mmap_request
virt_to_cache