函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:send_sigio_to_task

函数原型:static void send_sigio_to_task(struct task_struct *p, struct fown_struct *fown, int fd, int reason, enum pid_type type)

返回类型:void

参数:

类型参数名称
struct task_struct *p
struct fown_struct *fown
intfd
intreason
enum pid_typetype
732  signum等于READ_ONCE( posix.1b rt signal to be delivered on IO )
734  如果非sigio_perm(p, fown, signum)则返回
739  默认
746  clear_siginfo( & si)
747  si_signo等于signum
748  si_errno等于0
749  si_code等于reason
758  如果signum不等于SIGPOLLsig_specific_sicodes(signum)则si_code等于sent by queued SIGIO
764  BUG_ON((reason < data input available ) || ((reason - data input available ) >= NSIGPOLL))
765  如果reasondata input available 大于等于NSIGPOLLsi_band等于0L的反
767  否则si_band等于mangle_poll(Table to convert sigio signal codes into poll band bitmaps [reason - data input available ])
769  si_fd等于fd
770  如果非do_send_sig_info(signum, & si, p, type)则退出
773  :signum恒等于0
774  do_send_sig_info(SIGIO, SEND_SIG_PRIV, p, type)
调用者
名称描述
send_sigio