Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\exit.c Create Date:2022-07-28 09:02:23
Last Modify:2020-03-17 11:17:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:release_task

Proto:void release_task(struct task_struct *p)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
195  repeat :
198  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
199  atomic_dec( & processes)
200  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
202  proc_flush_task(p)
203  cgroup_release(p)
205  write_lock_irq( & tasklist_lock)
206  ptrace_release_task - final ptrace-related cleanup of a zombie being reaped*@task: task in %EXIT_DEAD state* Called with write_lock(&tasklist_lock) held.
207  This function expects the tasklist_lock write-locked.
214  zap_leader = 0
215  leader = group_leader
216  If leader != p && thread_group_empty(leader) && exit state == EXIT_ZOMBIE Then
223  zap_leader = do_notify_parent(leader, exit signal)
224  If zap_leader Then exit state = Used in tsk->exit_state:
228  write_unlock_irq( & tasklist_lock)
229  release_thread(p)
230  put_task_struct_rcu_user(p)
232  p = leader
233  If Value for the false possibility is greater at compile time(zap_leader) Then Go to repeat
Caller
NameDescribe
find_child_reaper
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