Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return error if the kprobe is being re-registered

Proto:static inline int check_kprobe_rereg(struct kprobe *p)

Type:int

Parameter:

TypeParameterName
struct kprobe *p
1520  ret = 0
1522  mutex_lock( & This protects kprobe_table and optimizing_list )
1523  If Check passed kprobe is valid and return kprobe in kprobe_table. Then ret = -EINVAL
1525  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.
1527  Return ret
Caller
NameDescribe
register_kprobe