Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched.h Create Date:2022-07-28 05:59:42
Last Modify:2021-07-28 10:30:23 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:s_global_init - check if a task structure is init. Since init* is free to have sub-threads we need to check tgid.*@tsk: Task structure to be checked.* Check if a task structure is the first user space task the kernel created.

Proto:static inline int is_global_init(struct task_struct *tsk)

Type:int

Parameter:

TypeParameterName
struct task_struct *tsk
1454  Return task_tgid_nr(tsk) == 1
Caller
NameDescribe
will_become_orphaned_pgrpDetermine if a process group is "orphaned", according to the POSIX* definition in 2
do_exit
sig_task_ignored
unhandled_signal
kexec_should_crash
oom_unkillable_taskrn true if the task is not adequate as candidate victim task.
__oom_kill_process
oom_kill_memcg_memberKill provided task unless it's secured by setting* oom_score_adj to OOM_SCORE_ADJ_MIN.