Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\livepatch\shadow.c Create Date:2022-07-28 10:31:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:klp_shadow_free_struct

Proto:static void klp_shadow_free_struct(struct klp_shadow *shadow, klp_shadow_dtor_t dtor)

Type:void

Parameter:

TypeParameterName
struct klp_shadow *shadow
klp_shadow_dtor_tdtor
237  hash_del_rcu - remove an object from a rcu enabled hashtable*@node: &struct hlist_node of the object to remove
238  If dtor Then dtor(obj, data)
240  kfree_rcu() - kfree an object after a grace period(shadow, rcu_head)
Caller
NameDescribe
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