函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\livepatch\shadow.c Create Date:2022-07-27 11:31:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:klp_shadow_match() - verify a shadow variable matches given <obj, id>*@shadow: shadow variable to match*@obj: pointer to parent object*@id: data identifier* Return: true if the shadow variable matches.

函数原型:static inline bool klp_shadow_match(struct klp_shadow *shadow, void *obj, unsigned long id)

返回类型:bool

参数:

类型参数名称
struct klp_shadow *shadow
void *obj
unsigned longid
73  返回:obj恒等于objid恒等于id
调用者
名称描述
klp_shadow_getklp_shadow_get() - retrieve a shadow variable data pointer*@obj: pointer to parent object*@id: data identifier* Return: the shadow variable data element, NULL on failure.
klp_shadow_freeklp_shadow_free() - detach and free a shadow variable*@obj: pointer to parent object*@id: data identifier*@dtor: custom callback that can be used to unregister the variable* and/or free data that the shadow variable points to (optional)* This
klp_shadow_free_allklp_shadow_free_all() - detach and free all <*, id> shadow variables*@id: data identifier*@dtor: custom callback that can be used to unregister the variable* and/or free data that the shadow variable points to (optional)* This function releases the memory