Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slob.c Create Date:2022-07-28 15:36:28
Last Modify:2022-05-20 09:26:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kmem_cache_free

Proto:void kmem_cache_free(struct kmem_cache *c, void *b)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *c
void *b
660  kmemleak_free_recursive(b, Used for retrieving partial slabs, etc. )
661  If Value for the false possibility is greater at compile time(Used for retrieving partial slabs, etc. & Defer freeing slabs to RCU ) Then
663  slob_rcu = b + The size of an object including metadata - size of slob_rcu
664  size = The size of an object including metadata
665  all_rcu() - Queue an RCU callback for invocation after a grace period
666  Else
667  __kmem_cache_free(b, The size of an object including metadata )
670  trace_kmem_cache_free(_RET_IP_, b)
Caller
NameDescribe
radix_tree_node_rcu_free
__radix_tree_preloadLoad up this CPU's radix_tree_node buffer with sufficient objects to* ensure that the addition of a single element in the tree cannot fail
radix_tree_cpu_dead
xas_destroyxas_destroy() - Free any resources allocated during the XArray operation.*@xas: XArray operation state.* This function is now internal-only.
kmem_cache_oob
memcg_accounted_kmem_cache
kmem_cache_double_free
kmem_cache_invalid_free
do_kmem_cache_sizeTest kmem_cache with given parameters:
do_kmem_cache_rcu_persistentCheck that the data written to an RCU-allocated object survives* reallocation.
btree_free
free_obj_work
debug_objects_replace_static_objectsConvert the statically allocated objects to dynamic ones:
lc_createlc_create - prepares to track objects in an active set*@name: descriptive name only used in lc_seq_printf_stats and lc_seq_dump_details*@max_pending_changes: maximum changes to accumulate until a transaction is required*@e_count: number of elements
lc_free_by_index
__kmem_cache_free_bulk
create_cache
slab_kmem_cache_release
__put_nommu_regionlease a reference to a region* - the caller must hold the region semaphore for writing, which this releases* - the region may not have been added to the tree yet, in which case vm_top* will equal vm_start
do_mmaphandle mapping creation for uClinux
split_vmasplit a vma into two pieces at address 'addr', a new vma is allocated either* for the first part or the tail.
ptlock_free
anon_vma_free
anon_vma_chain_free
merge_or_add_vmap_areaMerge de-allocated chunk of VA memory with previous* and next free blocks. If coalesce is not done a new* free area is inserted. If VA has been merged, it is* freed.
adjust_va_to_fit_type
alloc_vmap_areaAllocate a region of KVA of the specified size and alignment, within the* vstart and vend.
zswap_entry_cache_free
__mpol_putSlow path of a mpol destructor.
sp_free
sp_alloc
shared_policy_replaceReplace a policy range.