OSDN Git Service

uio_hv_generic: add rescind support
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 9 Jan 2018 20:57:32 +0000 (12:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2018 16:40:53 +0000 (17:40 +0100)
commitca3cda6fcf1e922213a0cc58e708ffb999151db3
tree9c05b3efcc9058c9e26116711e034253996dea6b
parent06028d15177a1b406b7b075ea47c6a352732f23a
uio_hv_generic: add rescind support

When host rescinds the device, the UIO driver will clear the interrupt
state and notify application. The read (or write) on the interrupt FD
will then fail with -EIO. This is simpler than adding lots extra uevent
stuff inside UIO.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/uio-howto.rst
drivers/uio/uio_hv_generic.c