]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: console: Send SIGIO to processes that request it for host events
authorAmit Shah <amit.shah@redhat.com>
Thu, 2 Sep 2010 13:17:52 +0000 (18:47 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Oct 2010 07:14:03 +0000 (17:44 +1030)
commite1c4b4a4ad1b29a68e927fecc222ade292f1e924
tree4b37348c448a77e1b6670e67e571a8eda4da9d8d
parent6cec651ed3e5f0964c2caa29126af3e58d241bc7
virtio: console: Send SIGIO to processes that request it for host events

A process can request for SIGIO on host connect / disconnect events
using the O_ASYNC file flag using fcntl().

If that's requested, and if the guest-side connection for the port is
open, any host-side open/close events for that port will raise a SIGIO.
The process can then use poll() within the signal handler to find out
which port triggered the signal.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c