函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\coredump.c Create Date:2022-07-29 11:06:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:coredump_wait

函数原型:static int coredump_wait(int exit_code, struct core_state *core_state)

返回类型:int

参数:

类型参数名称
intexit_code
struct core_state *core_state
438  tsk等于当前进程
439  mm等于内存信息
440  core_waiters等于负EBUSY
442  init_completion( & startup)
443  task等于tsk
444  next = NULL
446  如果lock for writing则返回:负EINTR
449  如果非 coredumping support core_waiters等于zap_threads(tsk, mm, core_state, exit_code)
451  lease a write lock
453  如果core_waiters大于0则
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  当(ptr != NULL)循环
467  ptr等于next
471  返回:core_waiters
调用者
名称描述
do_coredump