Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-28 13:44:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:update_ref_ctr

Proto:static int update_ref_ctr(struct uprobe *uprobe, struct mm_struct *mm, short d)

Type:int

Parameter:

TypeParameterName
struct uprobe *uprobe
struct mm_struct *mm
shortd
428  ret = 0
430  rc_vma = find_ref_ctr_vma(uprobe, mm)
432  If rc_vma Then
433  rc_vaddr = offset_to_vaddr(rc_vma, ref_ctr_offset)
434  ret = __update_ref_ctr(mm, rc_vaddr, d)
435  If ret Then update_ref_ctr_warn(uprobe, mm, d)
438  If d > 0 Then Return ret
442  mutex_lock( & delayed_uprobe_lock)
443  If d > 0 Then ret = delayed_uprobe_add(uprobe, mm)
445  Else delayed_uprobe_remove(uprobe, mm)
447  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.
449  Return ret
Caller
NameDescribe
uprobe_write_opcodeNOTE:* Expect the breakpoint instruction to be the smallest size instruction for* the architecture