函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\sem.c Create Date:2022-07-27 18:20:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:重置信号量

函数原型:int copy_semundo(unsigned long clone_flags, struct task_struct *tsk)

返回类型:int

参数:

类型参数名称
unsigned longclone_flags
struct task_struct *tsk
2274  如果clone_flags按位与share system V SEM_UNDO semantics
2275  error等于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* If this allocation and assignment succeeds, but later
2276  如果error则返回:error
2278  _inc - increment a refcount*@r: the refcount to increment* Similar to atomic_inc(), but will saturate at REFCOUNT_SATURATED and WARN
2279  undo_list等于undo_list
2280  否则undo_list = NULL
2283  返回:0
调用者
名称描述
copy_process创建进程