Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dup_utask

Proto:static int dup_utask(struct task_struct *t, struct uprobe_task *o_utask)

Type:int

Parameter:

TypeParameterName
struct task_struct *t
struct uprobe_task *o_utask
1758  n_utask = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
1759  If Not n_utask Then Return -ENOMEM
1761  utask = n_utask
1763  p = return_instances
1764  When o cycle
1765  n = Allocation memory
1766  If Not n Then Return -ENOMEM
1769  n = o
1770  get_uprobe(uprobe)
1771  keep as stack = NULL
1773  p = n
1774  p = keep as stack
1775  depth++
1778  Return 0
Caller
NameDescribe
uprobe_copy_processCalled in context of a new clone/fork from copy_process.