Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ptr_id

Proto:static int ptr_id(void *ptr)

Type:int

Parameter:

TypeParameterName
void *ptr
41  If ptr == ptr Then Return id
45  sp = kmalloc( size of sp , DOC: Useful GFP flag combinations* Useful GFP flag combinations* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~* Useful GFP flag combinations that are commonly used. It is recommended* that subsystems start with one of these combinations and then set/clear)
46  If Not sp Then Return -ENOMEM
48  ptr = ptr
49  id = count++
51  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
53  Return id
Caller
NameDescribe
shadow_getShadow variable wrapper functions that echo the function and arguments* to the kernel log for testing verification. Don't display raw pointers,* but use the ptr_id() value instead.
shadow_alloc
shadow_get_or_alloc
shadow_free
shadow_free_all
shadow_ctorShadow variable constructor - remember simple pointer data
shadow_dtor
test_klp_shadow_vars_init