Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cache_flusharray

Proto:static void cache_flusharray(struct kmem_cache *cachep, struct array_cache *ac)

Type:void

Parameter:

TypeParameterName
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  spin_lock( & list_lock)
3432  If shared Then
3433  shared_array = shared
3434  max = limit - avail
3435  If max Then
3436  If batchcount > max Then batchcount = max
3440  avail += batchcount
3441  Go to 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  spin_unlock( & list_lock)
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]), size of * * avail)
Caller
NameDescribe
___cache_free