函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-27 10:15:21
Last Modify:2020-03-17 13:28:47 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Dequeue a signal and return the element to the caller, which is* expected to free it.* All callers have to hold the siglock.

函数原型:int dequeue_signal(struct task_struct *tsk, sigset_t *mask, kernel_siginfo_t *info)

返回类型:int

参数:

类型参数名称
struct task_struct *tsk
sigset_t *mask
kernel_siginfo_t *info
625  bool resched_timer = false
631  signr等于__dequeue_signal( & 待处理信号, mask, info, & resched_timer)
632  如果非signr
633  signr等于__dequeue_signal( & shared_pending, mask, info, & resched_timer)
662  确定进程等待信号
663  如果非signr则返回:0
666  如果此条件成立可能性小(为编译器优化)(sig_kernel_stop(signr))则
679  jobctl或等于JOBCTL_STOP_DEQUEUED
697  返回:signr
调用者
名称描述
get_signal
do_sigtimedwaitdo_sigtimedwait - wait for queued signals specified in @which*@which: queued signals to wait for*@info: if non-null, the signal's siginfo is returned here*@ts: upper bound on process time suspension
signalfd_dequeue
kernel_dequeue_signal