Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-28 08:58:14
Last Modify:2020-03-17 11:04:53 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_sighand

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

Type:int

Parameter:

TypeParameterName
unsigned longclone_flags
struct task_struct *tsk
1506  If clone_flags & set if signal handlers and blocked signals shared Then
1507  _inc - increment a refcount*@r: the refcount to increment* Similar to atomic_inc(), but will saturate at REFCOUNT_SATURATED and WARN
1508  Return 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  If Not sig Then Return -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  No 3D Now!(action, action, size of action )
1518  spin_unlock_irq( & siglock)
1521  If clone_flags & Clear any signal handler and reset to SIG_DFL. Then flush_signal_handlers(tsk, 0)
1524  Return 0
Caller
NameDescribe
copy_processCreate a new process