Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fcntl.c Create Date:2022-07-28 20:05:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:send_sigio_to_task

Proto:static void send_sigio_to_task(struct task_struct *p, struct fown_struct *fown, int fd, int reason, enum pid_type type)

Type:void

Parameter:

TypeParameterName
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  If Not sigio_perm(p, fown, signum) Then Return
739  Default
746  clear_siginfo( & si)
747  si_signo = signum
748  si_errno = 0
749  si_code = reason
758  If signum != SIGPOLL && sig_specific_sicodes(signum) Then si_code = sent by queued SIGIO
764  BUG_ON((reason < data input available ) || ((reason - data input available ) >= NSIGPOLL))
765  If reason - data input available >= NSIGPOLL Then si_band = ~0L
767  Else si_band = mangle_poll(Table to convert sigio signal codes into poll band bitmaps [reason - data input available ])
769  si_fd = fd
770  If Not do_send_sig_info(signum, & si, p, type) Then Break
773  Case signum == 0
774  do_send_sig_info(SIGIO, SEND_SIG_PRIV, p, type)
Caller
NameDescribe
send_sigio