Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:free_vmap_block

Proto:static void free_vmap_block(struct vmap_block *vb)

Type:void

Parameter:

TypeParameterName
struct vmap_block *vb
1553  vb_idx = 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.
1554  spin_lock( & Radix tree of vmap blocks, indexed by address, to quickly find a vmap block* in the free path. Could get rid of this if we change the API to return a* "cookie" from alloc, to be passed to free. But no big deal yet.)
1555  tmp = adix_tree_delete - delete an entry from a radix tree*@root: radix tree root*@index: index key* Remove the entry at @index from the radix tree rooted at @root.* Return: The deleted entry, or %NULL if it was not present.
1556  spin_unlock( & Radix tree of vmap blocks, indexed by address, to quickly find a vmap block* in the free path. Could get rid of this if we change the API to return a* "cookie" from alloc, to be passed to free. But no big deal yet.)
1557  BUG_ON(tmp != vb)
1559  Free a vmap area, caller ensuring that the area has been unmapped* and flush_cache_vunmap had been called for the correct range* previously.
1560  kfree_rcu() - kfree an object after a grace period(vb, rcu_head)
Caller
NameDescribe
purge_fragmented_blocks
vb_free