函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-27 09:57:43
Last Modify:2020-03-17 11:04:53 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:复制信号句柄

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

返回类型:int

参数:

类型参数名称
unsigned longclone_flags
struct task_struct *tsk
1506  如果clone_flags按位与共享信号处理
1507  _inc - increment a refcount*@r: the refcount to increment* Similar to atomic_inc(), but will saturate at REFCOUNT_SATURATED and WARN
1508  返回:0
1510  sig等于kmem_cache_alloc(SLAB cache for sighand_struct structures (tsk->sighand) , GFP_KERNEL)
1511  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(sighand, sig)
1512  如果非sig则返回:负ENOMEM
1515  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
1516  spin_lock_irq( & siglock)
1517  内存复制(action, action, action的长度)
1518  spin_unlock_irq( & siglock)
1521  如果clone_flags按位与Clear any signal handler and reset to SIG_DFL. flush_signal_handlers(tsk, 0)
1524  返回:0
调用者
名称描述
copy_process创建进程