函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmap_block_vaddr

函数原型:static void *vmap_block_vaddr(unsigned long va_start, unsigned long pages_off)

返回类型:void

参数:

类型参数名称
unsigned longva_start
unsigned longpages_off
1477  addr等于va_startpages_off左移PAGE_SHIFT determines the page size 位的值
1478  BUG_ON(We should probably have a fallback mechanism to allocate virtual memory* out of partially filled vmap blocks. However vmap block sizing should be* fairly reasonable according to the vmalloc size, so it shouldn't be a* big problem. != We should probably have a fallback mechanism to allocate virtual memory* out of partially filled vmap blocks. However vmap block sizing should be* fairly reasonable according to the vmalloc size, so it shouldn't be a* big problem.)
1479  返回:addr
调用者
名称描述
new_vmap_blockw_vmap_block - allocates new vmap_block and occupies 2^order pages in this* block
vb_alloc