函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-27 12:39:48
Last Modify:2022-05-22 18:14:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:unregister_kprobes

函数原型:void unregister_kprobes(struct kprobe **kps, int num)

返回类型:void

参数:

类型参数名称
struct kprobe **kps
intnum
1821  如果num小于等于0则返回
1823  mutex_lock( & This protects kprobe_table and optimizing_list )
1824 i小于num循环如果Unregister a kprobe without a scheduler synchronization.小于0则
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 i小于num循环如果 location of the probe point
1832  __unregister_kprobe_bottom(kps[i])
调用者
名称描述
register_kprobes
unregister_kprobe
test_kprobes