Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched\signal.h Create Date:2022-07-28 05:40:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:thread_group_leader

Proto:static inline bool thread_group_leader(struct task_struct *p)

Type:bool

Parameter:

TypeParameterName
struct task_struct *p
631  Return exit_signal >= 0
Caller
NameDescribe
copy_processCreate a new process
__exit_signalThis function expects the tasklist_lock write-locked.
exit_notifySend signals to all our closest relatives so that they know* to properly mourn us..
wait_task_zombieHandle sys_wait4 work for one task in state EXIT_ZOMBIE. We hold* read_lock(&tasklist_lock) on entry. If we return zero, we still hold* the lock and this task is uninteresting. If we return nonzero, we have
__ptrace_detachCalled with tasklist_lock held for writing
SYSCALL_DEFINE2This needs some heavy checking
lookup_taskFunctions for validating access to tasks.
acct_collectacct_collect - collect accounting information into pacct_struct*@exitcode: task exit code*@group_dead: not 0, if this thread is the last one in the process.
css_task_iter_advance
zap_pid_ns_processes
bacct_add_tskll in basic accounting fields
yama_task_prctlyama_task_prctl - check for Yama-specific prctl operations*@option: operation*@arg2: argument*@arg3: argument*@arg4: argument*@arg5: argument* Return 0 on success, -ve on error. -ENOSYS is returned when Yama* does not handle the given option.
task_is_descendantask_is_descendant - walk up a process family tree looking for a match*@parent: the process to compare against while walking up from child*@child: the process to start from while looking upwards for parent
ptracer_exception_foundptracer_exception_found - tracer registered as exception for this tracee*@tracer: the task_struct of the process attempting ptrace*@tracee: the task_struct of the process to be ptraced* Returns 1 if tracer has a ptracer exception ancestor for tracee.
de_threadThis function makes sure the current process has its own signal table,* so that flush_signal_handlers can later reset the handlers without* disturbing other processes. (Other processes might share the signal* table via the CLONE_SIGHAND option to clone().)