函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:17:23
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__cache_free_alien

函数原型:static int __cache_free_alien(struct kmem_cache *cachep, void *objp, int node, int page_node)

返回类型:int

参数:

类型参数名称
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  如果alienalien[page_node]则
811  alien等于alien[page_node]
812  ac等于ac
813  加自旋锁
818  Must have this definition in here for the proper* alignment of array_cache. Also simplifies accessing* the entries.[avail++]等于objp
819  自旋锁解锁
820  slabs_destroy(cachep, & list)
821  否则
822  n等于get_node(cachep, page_node)
823  加自旋锁
824  Caller needs to acquire correct kmem_cache_node's list_lock*@list: List of detached free slabs should be freed by caller
825  自旋锁解锁
826  slabs_destroy(cachep, & list)
828  返回:1
调用者
名称描述
cache_free_alien