Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\zsmalloc.c Create Date:2022-07-28 16:26:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_zspage_mapping

Proto:static void get_zspage_mapping(struct zspage *zspage, unsigned int *class_idx, enum fullness_group *fullness)

Type:void

Parameter:

TypeParameterName
struct zspage *zspage
unsigned int *class_idx
enum fullness_group *fullness
518  BUG_ON(magic != ZSPAGE_MAGIC)
520  fullness = fullness
521  class_idx = class
Caller
NameDescribe
fix_fullness_groupEach size class maintains zspages in different fullness groups depending* on the number of live objects they contain. When allocating or freeing* objects, the fullness status of the page can change, say, from ALMOST_FULL
__free_zspage
zs_map_objectzs_map_object - get address of allocated object from handle.*@pool: pool from which the object was allocated*@handle: handle returned from zs_malloc*@mm: maping mode to use* Before using an object allocated from zs_malloc, it must be mapped using
zs_unmap_object
zs_free