Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-28 11:35:28
Last Modify:2022-05-22 18:14:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:recycle_rp_inst

Proto:void recycle_rp_inst(struct kretprobe_instance *ri, struct hlist_head *head)

Type:void

Parameter:

TypeParameterName
struct kretprobe_instance *ri
struct hlist_head *head
1181  rp = rp
1184  hlist_del( & hlist)
1185  INIT_HLIST_NODE( & hlist)
1186  If Value is more likely to compile time(rp) Then
1187  raw_spin_lock( & lock)
1188  hlist_add_head( & hlist, & free_instances)
1189  raw_spin_unlock( & lock)
1190  Else hlist_add_head( & hlist, head)
Caller
NameDescribe
kprobe_flush_taskThis function is called from finish_task_switch when task tk becomes dead,* so that we can recycle any function-return probe instances associated* with this task. These left over instances represent probed functions