Skip to content

Commit

Permalink
virtio: console: Send SIGIO on new data arrival on ports
Browse files Browse the repository at this point in the history
Send a SIGIO signal when new data arrives on a port. This is sent only
when the process has requested for the signal to be sent using fcntl().

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Amit Shah authored and Rusty Russell committed Oct 21, 2010
1 parent 3eae0ad commit 55f6bcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,9 @@ static void in_intr(struct virtqueue *vq)

wake_up_interruptible(&port->waitqueue);

/* Send a SIGIO indicating new data in case the process asked for it */
send_sigio_to_port(port);

if (is_console_port(port) && hvc_poll(port->cons.hvc))
hvc_kick();
}
Expand Down

0 comments on commit 55f6bcc

Please sign in to comment.