diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2022-08-17 15:26:57 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2022-08-17 15:26:57 +0000 |
commit | dcbc8e7e16d5387222e03f063c4fdd097b9109aa (patch) | |
tree | 87ebd6f5f95b2a029787e151d5177f43c1384c4d /sys | |
parent | 78a2b0631b7bd4e4e6f7c7348f7a80bd06815fa4 (diff) |
Fix vldc(4) event filters
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@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/dev/vldcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/vldcp.c b/sys/arch/sparc64/dev/vldcp.c index ca48a469b59..0757b3f8998 100644 --- a/sys/arch/sparc64/dev/vldcp.c +++ b/sys/arch/sparc64/dev/vldcp.c @@ -1,4 +1,4 @@ -/* $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 * @@ -617,6 +617,7 @@ filt_vldcpread(struct knote *kn, long hint) } else { cbus_intr_setenabled(sc->sc_bustag, sc->sc_rx_ino, INTR_ENABLED); + kn->kn_data = 0; } splx(s); @@ -641,6 +642,7 @@ filt_vldcwrite(struct knote *kn, long hint) } else { cbus_intr_setenabled(sc->sc_bustag, sc->sc_tx_ino, INTR_ENABLED); + kn->kn_data = 0; } splx(s); |