Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:unregister_kprobes

Proto:void unregister_kprobes(struct kprobe **kps, int num)

Type:void

Parameter:

TypeParameterName
struct kprobe **kps
intnum
1821  If num <= 0 Then Return
1823  mutex_lock( & This protects kprobe_table and optimizing_list )
1824  When i < num cycle If Unregister a kprobe without a scheduler synchronization. < 0 Then
1826  location of the probe point = NULL
1827  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1829  Wait for a grace period to elapse. But it is illegal to invoke* synchronize_rcu() from within an RCU read-side critical section.* Therefore, any legal call to synchronize_rcu() is a quiescent
1830  When i < num cycle If location of the probe point Then
1832  __unregister_kprobe_bottom(kps[i])
Caller
NameDescribe
register_kprobes
unregister_kprobe
test_kprobes