Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmalloc.c Create Date:2022-07-28 14:59:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static unsigned long addr_to_vb_idx(unsigned long addr)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longaddr
1468  addr -= VMALLOC_START & ~(VMAP_BLOCK_SIZE - 1)
1469  addr /= VMAP_BLOCK_SIZE
1470  Return addr
Caller
NameDescribe
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