Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__insert_uprobe

Proto:static struct uprobe *__insert_uprobe(struct uprobe *uprobe)

Type:struct uprobe

Parameter:

TypeParameterName
struct uprobe *uprobe
677  p = rb_node
678  struct rb_node * parent = NULL
682  When p cycle
683  parent = p
684  u = rb_entry(parent, structuprobe, rb_node)
685  match = match_uprobe(uprobe, u)
686  If Not match Then Return get_uprobe(u)
689  If match < 0 Then p = rb_left
691  Else p = rb_right
696  u = NULL
697  rb_link_node( & node in the rb tree , parent, p)
698  rb_insert_color( & node in the rb tree , & uprobes_tree)
700  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
702  Return u
Caller
NameDescribe
insert_uprobeAcquire uprobes_treelock.* Matching uprobe already exists in rbtree;* increment (access refcount) and return the matching uprobe.* No matching uprobe; insert the uprobe in rb_tree;* get a double refcount (access + creation) and return NULL.