From: Amit Shah Date: Thu, 2 Sep 2010 13:17:52 +0000 (+0530) Subject: virtio: console: Send SIGIO to processes that request it for host events X-Git-Tag: v2.6.37-rc1~219^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eae0adea949d8fdd8fa3e5301192901219d2c64;p=pandora-kernel.git 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 Signed-off-by: Rusty Russell --- Reading git-diff-tree failed