函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-27 15:41:04
Last Modify:2022-05-23 13:41:30 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Add a shrinker callback to be called from the vm.

函数原型:int prealloc_shrinker(struct shrinker *shrinker)

返回类型:int

参数:

类型参数名称
struct shrinker *shrinker
352  size等于bjs pending delete, per node 的长度
354  如果flags按位与Flags size乘等于nr_node_ids
357  bjs pending delete, per node 等于分配内存并置零
358  如果非bjs pending delete, per node 则返回:负ENOMEM
361  如果flags按位与SHRINKER_MEMCG_AWARE
362  如果prealloc_memcg_shrinker(shrinker)则转到:free_deferred
366  返回:0
368  free_deferred :
369  释放内存
370  bjs pending delete, per node = NULL
371  返回:负ENOMEM
调用者
名称描述
register_shrinker
workingset_init
alloc_superalloc_super - create new superblock*@type: filesystem type superblock should belong to*@flags: the mount flags*@user_ns: User namespace for the super_block* Allocates and initializes a new &struct super_block. alloc_super()