函数逻辑报告

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_get() - retrieve a shadow variable data pointer*@obj: pointer to parent object*@id: data identifier* Return: the shadow variable data element, NULL on failure.

函数原型:void *klp_shadow_get(void *obj, unsigned long id)

返回类型:void

参数:

类型参数名称
void *obj
unsigned longid
87  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
89  hash_for_each_possible_rcu - iterate over all possible objects hashing to the* same bucket in an rcu enabled hashtable*@name: hashtable to iterate*@obj: the type * to use as a loop cursor for each entry*@member: the name of the hlist_node within the (klp_shadow_hash, shadow, node, (unsignedlong)obj)
94  返回:data
98  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
100  返回:NULL
调用者
名称描述
__klp_shadow_get_or_alloc
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.