Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\coredump.c Create Date:2022-07-28 20:30:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:coredump_wait

Proto:static int coredump_wait(int exit_code, struct core_state *core_state)

Type:int

Parameter:

TypeParameterName
intexit_code
struct core_state *core_state
438  tsk = current process
439  mm = mm
440  core_waiters = -EBUSY
442  init_completion( & startup)
443  task = tsk
444  next = NULL
446  If lock for writing Then Return -EINTR
449  If Not coredumping support Then core_waiters = zap_threads(tsk, mm, core_state, exit_code)
451  lease a write lock
453  If core_waiters > 0 Then
456  freezer_do_not_count()
457  wait_for_completion: - waits for completion of a task*@x: holds the state of this particular completion* This waits to be signaled for completion of a specific task. It is NOT* interruptible and there is no timeout.* See also similar routines (i
458  freezer_count()
464  ptr = next
465  When (ptr != NULL) cycle
467  ptr = next
471  Return core_waiters
Caller
NameDescribe
do_coredump