Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-28 09:16:26
Last Modify:2020-03-17 13:28:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:send_sigqueue

Proto:int send_sigqueue(struct sigqueue *q, struct pid *pid, enum pid_type type)

Type:int

Parameter:

TypeParameterName
struct sigqueue *q
struct pid *pid
enum pid_typetype
1843  sig = si_signo
1849  BUG_ON(!(flags & lags values. ))
1851  ret = -1
1852  _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
1853  t = pid_task(pid, type)
1854  If Not t || Not Value is more likely to compile time(lock_task_sighand(t, & flags)) Then Go to ret
1857  ret = 1
1858  result = TRACE_SIGNAL_IGNORED
1859  If Not Handle magic process-wide effects of stop/continue signals Then Go to out
1862  ret = 0
1863  If Value for the false possibility is greater at compile time(!list_empty - tests whether a list is empty*@head: the list to test.) Then
1868  BUG_ON(si_code != sent by timer expiration )
1869  si_overrun++
1870  result = TRACE_SIGNAL_ALREADY_PENDING
1871  Go to out
1873  si_overrun = 0
1875  Deliver the signal to listening signalfd.
1876  pending = If type != PIDTYPE_PID Then shared_pending Else pending
1877  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
1878  We don't use for these because there is no need tobe atomic.
1879  complete_signal(sig, t, type)
1880  result = TRACE_SIGNAL_DELIVERED
1881  out :
1882  signal_generate - called when a signal is generated*@sig: signal number*@info: pointer to struct siginfo*@task: pointer to struct task_struct*@group: shared or private*@result: TRACE_SIGNAL_** Current process sends a 'sig' signal to 'task' process with
1883  unlock_task_sighand(t, & flags)
1884  ret :
1885  _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()
1886  Return ret
Caller
NameDescribe
posix_timer_event