Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Unregister a kprobe without a scheduler synchronization.

Proto:static int __unregister_kprobe_top(struct kprobe *p)

Type:int

Parameter:

TypeParameterName
struct kprobe *p
1728  ap = Disable one kprobe: Make sure called under kprobe_mutex is locked
1729  If IS_ERR(ap) Then Return PTR_ERR(ap)
1732  If ap == p Then Go to disarmed
1740  WARN_ON(!Return true if the kprobe is an aggregator )
1742  If list_is_singular - tests whether a list has just one entry.*@head: the list to test. && Return true(!0) if the kprobe is disarmed. Note: p must be on hash list Then Go to disarmed
1748  Else
1755  Called after addr is executed, unless... = NULL
1757  noclean :
1762  list_del_rcu - deletes entry from list without re-initialization*@entry: the element to delete from the list
1763  If Not Is this kprobe disabled ? && Not NOTE: change this value only with kprobe_mutex held Then Optimize kprobe if p is ready to be optimized
1770  Return 0
1772  disarmed :
1773  hlist_del_rcu - deletes entry from hash list without re-initialization*@n: the element to delete from the hash list.* Note: list_unhashed() on entry does not return true after this,* the entry is in an undefined state. It is useful for RCU based
1774  Return 0
Caller
NameDescribe
unregister_kprobes