函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The usb asyncio usage of siginfo is wrong

函数原型:int kill_pid_usb_asyncio(int sig, int errno, sigval_t addr, struct pid *pid, const struct cred *cred)

返回类型:int

参数:

类型参数名称
intsig
interrno
sigval_taddr
struct pid *pid
const struct cred *cred
1506  ret等于负EINVAL
1508  clear_siginfo( & info)
1509  si_signo等于sig
1510  si_errno等于errno
1511  si_code等于sent by AIO completion
1512  * ((sigval_t * ) & si_pid) = addr
1514  如果非Test if 'sig' is valid signal. Use this instead of testing _NSIG directly 则返回:ret
1517  _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
1518  p等于pid_task(pid, 单一进程)
1519  如果非p
1520  ret等于负ESRCH
1521  转到:out_unlock
1523  如果非kill_as_cred_perm(cred, p)则
1524  ret等于负EPERM
1525  转到:out_unlock
1527  ret等于security_task_kill(p, & info, sig, cred)
1528  如果ret则转到:out_unlock
1531  如果sig
1532  如果lock_task_sighand(p, & flags)则
1533  ret等于__send_signal(sig, & info, p, PIDTYPE_TGID, false)
1535  否则ret等于负ESRCH
1538  out_unlock :
1539  _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()
1540  返回:ret