Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched\signal.h Create Date:2022-07-28 05:40:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:signal_pending_state

Proto:static inline int signal_pending_state(long state, struct task_struct *p)

Type:int

Parameter:

TypeParameterName
longstate
struct task_struct *p
364  If Not (state & (TASK_INTERRUPTIBLE | TASK_WAKEKILL)) Then Return 0
366  If Not signal_pending(p) Then Return 0
369  Return state & TASK_INTERRUPTIBLE || __fatal_signal_pending(p)
Caller
NameDescribe
__schedule__schedule() is the main scheduler function.* The main means of driving the scheduler and thus entering this function are:* 1. Explicit blocking: mutex, semaphore, waitqueue, etc.* 2. TIF_NEED_RESCHED flag is checked on interrupt and userspace return
prepare_to_wait_event
bit_wait
bit_wait_io
bit_wait_timeout
bit_wait_io_timeout
prepare_to_swait_event
do_wait_for_common
__mutex_lock_commonLock a mutex (possibly interruptible), slowpath:
__down_commonBecause this function is inlined, the 'state' parameter will be* constant, and thus optimised away by the compiler. Likewise the* 'timeout' parameter for the cases without timeouts.
rwsem_down_read_slowpathWait for the read lock to be granted
rwsem_down_write_slowpathWait until we successfully acquire the write lock
wait_on_page_bit_common
blk_polllk_poll - poll for IO completions*@q: the queue*@cookie: cookie passed back at IO submission time*@spin: whether to spin for completions* Description:* Poll for completions on the passed in queue. Returns number of* completed entries found