Function Report

Linux Kernel (v4.4)

Source File:kernel\fork.c Create Date:2016-01-14 10:16:35
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:copy_sighand

Function:static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk)

Return Type:static int


Type Parameter NameRemarks
unsigned long clone_flags
struct task_struct * tsk

Function description:

1071  If clone_flags & set if signal handlers and blocked signals shared then
1072  increment atomic variable
1073  Returning 0
1075  sig = kmem_cache_alloc(SLAB cache for sighand_struct structures(tsk->sighand), GFP_KERNEL)
1076  rcu_assign_pointer()- assign to RCU-protected pointer
1077  If !sig then Returning -Out of memory
1080  set atomic variable
1081  Copy current process->sighand->action to action
1082  Returning 0
Function NameFunction description
copy_processCreate a new process