Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__cache_free_alien

Proto:static int __cache_free_alien(struct kmem_cache *cachep, void *objp, int node, int page_node)

Type:int

Parameter:

TypeParameterName
struct kmem_cache *cachep
void *objp
intnode
intpage_node
804  struct alien_cache * alien = NULL
806  LIST_HEAD(list)
808  n = get_node(cachep, node)
809  STATS_INC_NODEFREES(cachep)
810  If alien && alien[page_node] Then
811  alien = alien[page_node]
812  ac = ac
813  spin_lock( & lock)
818  Must have this definition in here for the proper* alignment of array_cache. Also simplifies accessing* the entries.[avail++] = objp
819  spin_unlock( & lock)
820  slabs_destroy(cachep, & list)
821  Else
822  n = get_node(cachep, page_node)
823  spin_lock( & list_lock)
824  Caller needs to acquire correct kmem_cache_node's list_lock*@list: List of detached free slabs should be freed by caller
825  spin_unlock( & list_lock)
826  slabs_destroy(cachep, & list)
828  Return 1
Caller
NameDescribe
cache_free_alien