Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool add)

Type:int

Parameter:

TypeParameterName
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  If WARN_ON(!uprobe) Then Return ret
1228  lock for writing
1229  When con && con != uc cycle If con Then
1232  ret = register_for_each_vma(uprobe, add ? uc : NULL)
1233  lease a write lock
1234  put_uprobe(uprobe)
1236  Return ret