Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-28 15:45:45
Last Modify:2022-05-23 17:02:55 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:___cache_free

Proto:void ___cache_free(struct kmem_cache *cachep, void *objp, unsigned long caller)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *cachep
void *objp
unsigned longcaller
3483  ac = cpu_cache_get(cachep)
3485  check_irq_off()
3486  If Value for the false possibility is greater at compile time(slab_want_init_on_free(cachep)) Then memset(objp, 0, The size of an object without metadata )
3488  kmemleak_free_recursive(objp, Used for retrieving partial slabs, etc. )
3489  objp = cache_free_debugcheck(cachep, objp, caller)
3498  If nr_online_nodes > 1 && cache_free_alien(cachep, objp) Then Return
3501  If avail < limit Then
3502  STATS_INC_FREEHIT(cachep)
3503  Else
3504  STATS_INC_FREEMISS(cachep)
3505  cache_flusharray(cachep, ac)
3508  If sk_memalloc_socks() Then
3509  page = virt_to_head_page(objp)
3513  Return
3517  Must have this definition in here for the proper* alignment of array_cache. Also simplifies accessing* the entries.[avail++] = objp
Caller
NameDescribe
__cache_freeRelease an obj back to its cache. If the obj has a constructed state, it must* be in this state _before_ it is released. Called with disabled ints.
qlink_free