函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cache_flusharray

函数原型:static void cache_flusharray(struct kmem_cache *cachep, struct array_cache *ac)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cachep
struct array_cache *ac
3424  node等于Returns the number of the nearest Node with memory
3425  LIST_HEAD(list)
3427  batchcount等于batchcount
3429  check_irq_off()
3430  n等于get_node(cachep, node)
3431  加自旋锁
3432  如果shared
3433  shared_array等于shared
3434  max等于limitavail
3435  如果max
3436  如果batchcount大于maxbatchcount等于max
3440  avail加等于batchcount
3441  转到:free_done
3445  Caller needs to acquire correct kmem_cache_node's list_lock*@list: List of detached free slabs should be freed by caller
3446  free_done :
3460  自旋锁解锁
3461  slabs_destroy(cachep, & list)
3462  avail减等于batchcount
3463  memmove(Must have this definition in here for the proper* alignment of array_cache. Also simplifies accessing* the entries., & (Must have this definition in here for the proper* alignment of array_cache. Also simplifies accessing* the entries.[batchcount]), *的长度 * avail)
调用者
名称描述
___cache_free