函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int transfer_objects(struct array_cache *to, struct array_cache *from, unsigned int max)

返回类型:int

参数:

类型参数名称
struct array_cache *to
struct array_cache *from
unsigned intmax
626  nr等于三数取小(avail, max, limit - avail)
628  如果非nr则返回:0
631  内存复制(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, *的长度 * nr)
634  avail减等于nr
635  avail加等于nr
636  返回:nr
调用者
名称描述
__drain_alien_cache
cache_alloc_refill