函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static unsigned long addr_to_vb_idx(unsigned long addr)

返回类型:unsigned long

参数:

类型参数名称
unsigned longaddr
1468  addr减等于VMALLOC_START按位与VMAP_BLOCK_SIZE减1的差的反
1469  addr除等于VMAP_BLOCK_SIZE
1470  返回:addr
调用者
名称描述
vmap_block_vaddr
new_vmap_blockw_vmap_block - allocates new vmap_block and occupies 2^order pages in this* block
free_vmap_block
vb_free