函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:probe_apply - unregister an already registered probe.*@inode: the file in which the probe has to be removed.*@offset: offset from the start of the file.*@uc: consumer which wants to add more or remove some breakpoints*@add: add or remove the breakpoints

函数原型:int uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool add)

返回类型:int

参数:

类型参数名称
struct inode *inode
loff_toffset
struct uprobe_consumer *uc
booladd
1222  ret等于负ENOENT
1224  uprobe等于Find a uprobe corresponding to a given inode:offset* Acquires uprobes_treelock
1225  如果WARN_ON(!uprobe)则返回:ret
1228  lock for writing
1229 concon不等于uc循环如果con
1232  ret等于register_for_each_vma(uprobe, add ? uc : NULL)
1233  lease a write lock
1234  put_uprobe(uprobe)
1236  返回:ret