Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55f6bcce authored by Amit Shah's avatar Amit Shah Committed by Rusty Russell
Browse files

virtio: console: Send SIGIO on new data arrival on ports



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: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 3eae0ade
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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();
}