Indicate non-activeness when the device is not ready for reading
or writing. This should make the event filters behave more like
the old poll code.
"makes sense to me" mpi@
-/* $OpenBSD: vldcp.c,v 1.24 2022/07/10 08:33:00 visa Exp $ */
+/* $OpenBSD: vldcp.c,v 1.25 2022/08/17 15:26:56 visa Exp $ */
/*
* Copyright (c) 2009, 2012 Mark Kettenis
*
} else {
cbus_intr_setenabled(sc->sc_bustag, sc->sc_rx_ino,
INTR_ENABLED);
+ kn->kn_data = 0;
}
splx(s);
} else {
cbus_intr_setenabled(sc->sc_bustag, sc->sc_tx_ino,
INTR_ENABLED);
+ kn->kn_data = 0;
}
splx(s);