函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-27 15:06:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:update_ref_ctr

函数原型:static int update_ref_ctr(struct uprobe *uprobe, struct mm_struct *mm, short d)

返回类型:int

参数:

类型参数名称
struct uprobe *uprobe
struct mm_struct *mm
shortd
428  ret等于0
430  rc_vma等于find_ref_ctr_vma(uprobe, mm)
432  如果rc_vma
433  rc_vaddr等于offset_to_vaddr(rc_vma, ref_ctr_offset)
434  ret等于__update_ref_ctr(mm, rc_vaddr, d)
435  如果retupdate_ref_ctr_warn(uprobe, mm, d)
438  如果d大于0则返回:ret
442  mutex_lock( & delayed_uprobe_lock)
443  如果d大于0则ret等于delayed_uprobe_add(uprobe, mm)
445  否则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  返回:ret
调用者
名称描述
uprobe_write_opcodeNOTE:* Expect the breakpoint instruction to be the smallest size instruction for* the architecture