Function Report

Linux Kernel (v4.4)

Source File:ipc\sem.c Create Date:2016-01-14 13:10:07
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:copy_semundo

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

Return Type:int

Parameter:

Type Parameter NameRemarks
unsigned long clone_flags
struct task_struct * tsk

Function description:If CLONE_SYSVSEM is set, establish sharing of SEM_UNDO state between parent and child tasks.

2042  If clone_flags & share system V SEM_UNDO semantics then
2043  If the task doesn't already have a undo_list, then allocate one here. We guarantee there is only one thread using this undo list, and current is THE ONE
2044  If result of If the task doesn't already have a undo_list, then allocate one here. We guarantee there is only one thread using this undo list, and current is THE ONE then Returning result of If the task doesn't already have a undo_list, then allocate one here. We guarantee there is only one thread using this undo list, and current is THE ONE
2046  increment atomic variable
2047  undo_list = controls shared access to the list of sem_undo structures that may be shared among all a CLONE_SYSVSEM task group.
2048  Else undo_list = NULL
2051  Returning 0
Caller
Function NameFunction description
copy_processCreate a new process