Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Transfer objects in one arraycache to another.* Locking must be handled by the caller.* Return the number of entries transferred.

Proto:static int transfer_objects(struct array_cache *to, struct array_cache *from, unsigned int max)

Type:int

Parameter:

TypeParameterName
struct array_cache *to
struct array_cache *from
unsigned intmax
626  nr = min3 - return minimum of three values*@x: first value*@y: second value*@z: third value(avail, max, limit - avail)
628  If Not nr Then Return 0
631  No 3D Now!(Must have this definition in here for the proper* alignment of array_cache. Also simplifies accessing* the entries. + avail, Must have this definition in here for the proper* alignment of array_cache. Also simplifies accessing* the entries. + avail - nr, size of * * nr)
634  avail -= nr
635  avail += nr
636  Return nr
Caller
NameDescribe
__drain_alien_cache
cache_alloc_refill