summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2009-10-31 06:40:14 +0000
committerderaadt <deraadt@openbsd.org>2009-10-31 06:40:14 +0000
commitade004edddcdab33faee7c7b5833d2bf917e71c0 (patch)
treeceb3b05d41e8166040fd547fb2bc9003e1c8d18b /sys
parentIf the nmea(4) or endrun(4) timing disciplines are selected ignore status (diff)
downloadwireguard-openbsd-ade004edddcdab33faee7c7b5833d2bf917e71c0.tar.xz
wireguard-openbsd-ade004edddcdab33faee7c7b5833d2bf917e71c0.zip
Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()
calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/alpha/promcons.c3
-rw-r--r--sys/arch/alpha/tc/scc.c4
-rw-r--r--sys/arch/arm/s3c2xx0/sscom.c3
-rw-r--r--sys/arch/aviion/dev/dart.c3
-rw-r--r--sys/arch/hp300/dev/apci.c3
-rw-r--r--sys/arch/hp300/dev/dca.c3
-rw-r--r--sys/arch/hp300/dev/dcm.c3
-rw-r--r--sys/arch/hppa/dev/pdc.c3
-rw-r--r--sys/arch/hppa64/dev/pdc.c3
-rw-r--r--sys/arch/luna88k/dev/siotty.c3
-rw-r--r--sys/arch/mac68k/dev/z8530tty.c3
-rw-r--r--sys/arch/macppc/dev/z8530tty.c3
-rw-r--r--sys/arch/mvme68k/dev/cl.c4
-rw-r--r--sys/arch/mvme68k/dev/dart.c3
-rw-r--r--sys/arch/mvme68k/dev/wl.c3
-rw-r--r--sys/arch/mvme68k/dev/zs.c4
-rw-r--r--sys/arch/mvme88k/dev/cl.c4
-rw-r--r--sys/arch/mvme88k/dev/dart.c3
-rw-r--r--sys/arch/sh/dev/scif.c3
-rw-r--r--sys/arch/sparc/dev/magma.c3
-rw-r--r--sys/arch/sparc/dev/spif.c3
-rw-r--r--sys/arch/sparc/dev/z8530tty.c3
-rw-r--r--sys/arch/sparc64/dev/pcons.c3
-rw-r--r--sys/arch/sparc64/dev/sab.c3
-rw-r--r--sys/arch/sparc64/dev/sbbc.c3
-rw-r--r--sys/arch/sparc64/dev/vcctty.c3
-rw-r--r--sys/arch/sparc64/dev/vcons.c3
-rw-r--r--sys/arch/sparc64/dev/z8530tty.c3
-rw-r--r--sys/arch/vax/qbus/dhu.c3
-rw-r--r--sys/arch/vax/qbus/dl.c3
-rw-r--r--sys/arch/vax/qbus/dz.c3
-rw-r--r--sys/arch/vax/qbus/qd.c6
-rw-r--r--sys/arch/vax/vax/gencons.c3
-rw-r--r--sys/arch/vax/vxt/qsc.c3
-rw-r--r--sys/dev/ic/com.c3
-rw-r--r--sys/dev/ic/cy.c3
-rw-r--r--sys/dev/ic/z8530tty.c3
-rw-r--r--sys/dev/pci/bktr/bktr_core.c3
-rw-r--r--sys/dev/pci/cz.c3
-rw-r--r--sys/dev/sbus/magma.c3
-rw-r--r--sys/dev/sbus/spif.c3
-rw-r--r--sys/dev/systrace.c3
-rw-r--r--sys/dev/usb/ucom.c3
-rw-r--r--sys/dev/usb/ugen.c4
-rw-r--r--sys/dev/usb/uhid.c3
-rw-r--r--sys/dev/usb/usb.c3
46 files changed, 100 insertions, 46 deletions
diff --git a/sys/arch/alpha/alpha/promcons.c b/sys/arch/alpha/alpha/promcons.c
index 5ff451ef1ab..279cc3e0235 100644
--- a/sys/arch/alpha/alpha/promcons.c
+++ b/sys/arch/alpha/alpha/promcons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: promcons.c,v 1.9 2005/11/21 18:16:36 millert Exp $ */
+/* $OpenBSD: promcons.c,v 1.10 2009/10/31 06:40:14 deraadt Exp $ */
/* $NetBSD: promcons.c,v 1.5 1996/11/13 22:20:55 cgd Exp $ */
/*
@@ -191,6 +191,7 @@ promstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/alpha/tc/scc.c b/sys/arch/alpha/tc/scc.c
index 7111bf89f08..7ef8289c2a5 100644
--- a/sys/arch/alpha/tc/scc.c
+++ b/sys/arch/alpha/tc/scc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scc.c,v 1.22 2008/08/09 16:42:29 miod Exp $ */
+/* $OpenBSD: scc.c,v 1.23 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: scc.c,v 1.58 2002/03/17 19:40:27 atatat Exp $ */
/*
@@ -927,6 +927,7 @@ sccstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc == 0)
goto out;
@@ -946,6 +947,7 @@ sccstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
goto out;
}
diff --git a/sys/arch/arm/s3c2xx0/sscom.c b/sys/arch/arm/s3c2xx0/sscom.c
index 70069f3a818..f016e49a7c3 100644
--- a/sys/arch/arm/s3c2xx0/sscom.c
+++ b/sys/arch/arm/s3c2xx0/sscom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sscom.c,v 1.11 2009/10/13 19:33:16 pirofti Exp $ */
+/* $OpenBSD: sscom.c,v 1.12 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: sscom.c,v 1.29 2008/06/11 22:37:21 cegger Exp $ */
/*
@@ -1378,6 +1378,7 @@ sscomstart(struct tty *tp)
if (tp->t_outq.c_cc == 0)
goto out;
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
SET(tp->t_state, TS_BUSY);
diff --git a/sys/arch/aviion/dev/dart.c b/sys/arch/aviion/dev/dart.c
index 7be2a1336c8..c30f7a712bc 100644
--- a/sys/arch/aviion/dev/dart.c
+++ b/sys/arch/aviion/dev/dart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dart.c,v 1.4 2008/01/23 16:37:58 jsing Exp $ */
+/* $OpenBSD: dart.c,v 1.5 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Mach Operating System
@@ -268,6 +268,7 @@ dartstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto bail;
}
diff --git a/sys/arch/hp300/dev/apci.c b/sys/arch/hp300/dev/apci.c
index f15b54817fa..e565492500b 100644
--- a/sys/arch/hp300/dev/apci.c
+++ b/sys/arch/hp300/dev/apci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apci.c,v 1.33 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: apci.c,v 1.34 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: apci.c,v 1.9 2000/11/02 00:35:05 eeh Exp $ */
/*-
@@ -770,6 +770,7 @@ apcistart(tp)
if (tp->t_outq.c_cc == 0)
goto out;
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (apci->ap_lsr & LSR_TXRDY) {
tp->t_state |= TS_BUSY;
diff --git a/sys/arch/hp300/dev/dca.c b/sys/arch/hp300/dev/dca.c
index 0c5a2891b77..235cd401ef2 100644
--- a/sys/arch/hp300/dev/dca.c
+++ b/sys/arch/hp300/dev/dca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dca.c,v 1.34 2009/01/25 13:49:49 miod Exp $ */
+/* $OpenBSD: dca.c,v 1.35 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: dca.c,v 1.35 1997/05/05 20:58:18 thorpej Exp $ */
/*
@@ -869,6 +869,7 @@ dcastart(tp)
if (tp->t_outq.c_cc == 0)
goto out;
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (dca->dca_lsr & LSR_TXRDY) {
tp->t_state |= TS_BUSY;
diff --git a/sys/arch/hp300/dev/dcm.c b/sys/arch/hp300/dev/dcm.c
index 0dc135c3d20..07f1c5c836c 100644
--- a/sys/arch/hp300/dev/dcm.c
+++ b/sys/arch/hp300/dev/dcm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dcm.c,v 1.29 2008/01/23 16:37:56 jsing Exp $ */
+/* $OpenBSD: dcm.c,v 1.30 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: dcm.c,v 1.41 1997/05/05 20:59:16 thorpej Exp $ */
/*
@@ -1177,6 +1177,7 @@ dcmstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc == 0) {
#ifdef DCMSTATS
diff --git a/sys/arch/hppa/dev/pdc.c b/sys/arch/hppa/dev/pdc.c
index 19bbd462521..4e6a25d13ad 100644
--- a/sys/arch/hppa/dev/pdc.c
+++ b/sys/arch/hppa/dev/pdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.c,v 1.31 2008/01/23 16:37:56 jsing Exp $ */
+/* $OpenBSD: pdc.c,v 1.32 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -345,6 +345,7 @@ pdcstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/hppa64/dev/pdc.c b/sys/arch/hppa64/dev/pdc.c
index 7ed6dd78f57..5efb3d65068 100644
--- a/sys/arch/hppa64/dev/pdc.c
+++ b/sys/arch/hppa64/dev/pdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.c,v 1.3 2008/04/20 11:53:11 kettenis Exp $ */
+/* $OpenBSD: pdc.c,v 1.4 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -335,6 +335,7 @@ pdcstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/luna88k/dev/siotty.c b/sys/arch/luna88k/dev/siotty.c
index 44e81e48860..69c593b884a 100644
--- a/sys/arch/luna88k/dev/siotty.c
+++ b/sys/arch/luna88k/dev/siotty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siotty.c,v 1.7 2008/06/26 05:42:11 ray Exp $ */
+/* $OpenBSD: siotty.c,v 1.8 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: siotty.c,v 1.9 2002/03/17 19:40:43 atatat Exp $ */
/*-
@@ -205,6 +205,7 @@ siostart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc == 0)
goto out;
diff --git a/sys/arch/mac68k/dev/z8530tty.c b/sys/arch/mac68k/dev/z8530tty.c
index 246485e76c1..5dd8a005625 100644
--- a/sys/arch/mac68k/dev/z8530tty.c
+++ b/sys/arch/mac68k/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.18 2009/03/15 20:40:25 miod Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.19 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: z8530tty.c,v 1.14 1996/12/17 20:42:43 gwr Exp $ */
/*
@@ -645,6 +645,7 @@ zsstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
nch = ndqb(&tp->t_outq, 0); /* XXX */
diff --git a/sys/arch/macppc/dev/z8530tty.c b/sys/arch/macppc/dev/z8530tty.c
index f9f6a33b4c6..69ef381bcd5 100644
--- a/sys/arch/macppc/dev/z8530tty.c
+++ b/sys/arch/macppc/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.8 2009/01/11 16:54:59 blambert Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.9 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*-
@@ -787,6 +787,7 @@ zsstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}
diff --git a/sys/arch/mvme68k/dev/cl.c b/sys/arch/mvme68k/dev/cl.c
index d37562ae19c..4c53576b10f 100644
--- a/sys/arch/mvme68k/dev/cl.c
+++ b/sys/arch/mvme68k/dev/cl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl.c,v 1.47 2009/05/31 12:25:52 miod Exp $ */
+/* $OpenBSD: cl.c,v 1.48 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -1555,6 +1555,7 @@ cl_txintr(arg)
wakeup((caddr_t) &tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
sc->cl_reg->cl_ier = sc->cl_reg->cl_ier & ~0x3;
}
@@ -1588,6 +1589,7 @@ cl_txintr(arg)
wakeup((caddr_t) &tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
sc->cl_reg->cl_ier = sc->cl_reg->cl_ier & ~0x3;
}
diff --git a/sys/arch/mvme68k/dev/dart.c b/sys/arch/mvme68k/dev/dart.c
index c619db6353e..73e33a83450 100644
--- a/sys/arch/mvme68k/dev/dart.c
+++ b/sys/arch/mvme68k/dev/dart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dart.c,v 1.2 2009/03/01 22:08:13 miod Exp $ */
+/* $OpenBSD: dart.c,v 1.3 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Mach Operating System
@@ -283,6 +283,7 @@ dartstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto bail;
}
diff --git a/sys/arch/mvme68k/dev/wl.c b/sys/arch/mvme68k/dev/wl.c
index 1854456e1d7..7a000e827b1 100644
--- a/sys/arch/mvme68k/dev/wl.c
+++ b/sys/arch/mvme68k/dev/wl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wl.c,v 1.18 2005/11/24 22:43:16 miod Exp $ */
+/* $OpenBSD: wl.c,v 1.19 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -1218,6 +1218,7 @@ cl_txintr(sc)
wakeup((caddr_t) &tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
sc->cl_reg->cl_ier = sc->cl_reg->cl_ier & ~(IER_TXMPTY|IER_TXD);
}
diff --git a/sys/arch/mvme68k/dev/zs.c b/sys/arch/mvme68k/dev/zs.c
index ac3e2a4fae8..3d37b2e98d7 100644
--- a/sys/arch/mvme68k/dev/zs.c
+++ b/sys/arch/mvme68k/dev/zs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zs.c,v 1.27 2009/03/15 20:40:25 miod Exp $ */
+/* $OpenBSD: zs.c,v 1.28 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2000 Steve Murphree, Jr.
@@ -564,6 +564,7 @@ zsstop(tp, flag)
wakeup((caddr_t) & tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
}
splx(s);
@@ -912,6 +913,7 @@ zs_softint(arg)
wakeup((caddr_t) & tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_line != 0)
(*linesw[tp->t_line].l_start) (tp);
diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c
index e5b3b2a568a..5b7a1c0adc0 100644
--- a/sys/arch/mvme88k/dev/cl.c
+++ b/sys/arch/mvme88k/dev/cl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl.c,v 1.54 2009/05/31 12:25:53 miod Exp $ */
+/* $OpenBSD: cl.c,v 1.55 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -1426,6 +1426,7 @@ cl_txintr(arg)
wakeup((caddr_t) &tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
bus_space_write_1(iot, ioh, CL_IER,
bus_space_read_1(iot, ioh, CL_IER) & ~0x03);
@@ -1457,6 +1458,7 @@ cl_txintr(arg)
wakeup((caddr_t) &tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
bus_space_write_1(iot, ioh, CL_IER,
bus_space_read_1(iot, ioh, CL_IER) & ~0x03);
diff --git a/sys/arch/mvme88k/dev/dart.c b/sys/arch/mvme88k/dev/dart.c
index f96fd2f9878..32a3f6e3d42 100644
--- a/sys/arch/mvme88k/dev/dart.c
+++ b/sys/arch/mvme88k/dev/dart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dart.c,v 1.51 2008/01/23 16:37:57 jsing Exp $ */
+/* $OpenBSD: dart.c,v 1.52 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Mach Operating System
@@ -312,6 +312,7 @@ dartstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto bail;
}
diff --git a/sys/arch/sh/dev/scif.c b/sys/arch/sh/dev/scif.c
index 04aaf0607c1..c2037d934d4 100644
--- a/sys/arch/sh/dev/scif.c
+++ b/sys/arch/sh/dev/scif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scif.c,v 1.7 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: scif.c,v 1.8 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: scif.c,v 1.47 2006/07/23 22:06:06 ad Exp $ */
/*-
@@ -491,6 +491,7 @@ scifstart(struct tty *tp)
wakeup(&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}
diff --git a/sys/arch/sparc/dev/magma.c b/sys/arch/sparc/dev/magma.c
index 05b217a790f..18dbf2179fd 100644
--- a/sys/arch/sparc/dev/magma.c
+++ b/sys/arch/sparc/dev/magma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: magma.c,v 1.21 2009/04/10 20:53:51 miod Exp $ */
+/* $OpenBSD: magma.c,v 1.22 2009/10/31 06:40:16 deraadt Exp $ */
/*-
* Copyright (c) 1998 Iain Hibbert
@@ -1208,6 +1208,7 @@ mtty_start(tp)
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
/*
diff --git a/sys/arch/sparc/dev/spif.c b/sys/arch/sparc/dev/spif.c
index 4102f97246b..2df4e24a932 100644
--- a/sys/arch/sparc/dev/spif.c
+++ b/sys/arch/sparc/dev/spif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spif.c,v 1.21 2009/04/10 20:53:51 miod Exp $ */
+/* $OpenBSD: spif.c,v 1.22 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -682,6 +682,7 @@ stty_start(tp)
wakeup(&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc) {
sp->sp_txc = ndqb(&tp->t_outq, 0);
diff --git a/sys/arch/sparc/dev/z8530tty.c b/sys/arch/sparc/dev/z8530tty.c
index 83d7da7d24d..7ab3048b71e 100644
--- a/sys/arch/sparc/dev/z8530tty.c
+++ b/sys/arch/sparc/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.10 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.11 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*-
@@ -808,6 +808,7 @@ zsstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}
diff --git a/sys/arch/sparc64/dev/pcons.c b/sys/arch/sparc64/dev/pcons.c
index 9f738e358bc..293f35bd8c0 100644
--- a/sys/arch/sparc64/dev/pcons.c
+++ b/sys/arch/sparc64/dev/pcons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcons.c,v 1.14 2009/09/05 14:09:35 miod Exp $ */
+/* $OpenBSD: pcons.c,v 1.15 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: pcons.c,v 1.7 2001/05/02 10:32:20 scw Exp $ */
/*-
@@ -359,6 +359,7 @@ pconsstart(tp)
wakeup(cl);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
splx(s);
}
diff --git a/sys/arch/sparc64/dev/sab.c b/sys/arch/sparc64/dev/sab.c
index 8d6ecef0628..904cd1f1700 100644
--- a/sys/arch/sparc64/dev/sab.c
+++ b/sys/arch/sparc64/dev/sab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sab.c,v 1.25 2008/05/24 00:11:31 kettenis Exp $ */
+/* $OpenBSD: sab.c,v 1.26 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -1099,6 +1099,7 @@ sabtty_start(tp)
wakeup(&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc) {
sc->sc_txc = ndqb(&tp->t_outq, 0);
diff --git a/sys/arch/sparc64/dev/sbbc.c b/sys/arch/sparc64/dev/sbbc.c
index 2308365fd45..3ae379c3d21 100644
--- a/sys/arch/sparc64/dev/sbbc.c
+++ b/sys/arch/sparc64/dev/sbbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbbc.c,v 1.5 2008/10/05 10:51:39 kettenis Exp $ */
+/* $OpenBSD: sbbc.c,v 1.6 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
*
@@ -629,6 +629,7 @@ sbbcstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/sparc64/dev/vcctty.c b/sys/arch/sparc64/dev/vcctty.c
index 170f2278905..5c59a33c530 100644
--- a/sys/arch/sparc64/dev/vcctty.c
+++ b/sys/arch/sparc64/dev/vcctty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vcctty.c,v 1.1 2009/05/10 12:24:04 kettenis Exp $ */
+/* $OpenBSD: vcctty.c,v 1.2 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2009 Mark Kettenis
*
@@ -440,6 +440,7 @@ vccttystart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/sparc64/dev/vcons.c b/sys/arch/sparc64/dev/vcons.c
index 8cb47894af6..a1daee4977c 100644
--- a/sys/arch/sparc64/dev/vcons.c
+++ b/sys/arch/sparc64/dev/vcons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vcons.c,v 1.5 2008/11/24 16:19:33 kettenis Exp $ */
+/* $OpenBSD: vcons.c,v 1.6 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
*
@@ -280,6 +280,7 @@ vconsstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/sparc64/dev/z8530tty.c b/sys/arch/sparc64/dev/z8530tty.c
index 80a14247bcc..c1312a6b23b 100644
--- a/sys/arch/sparc64/dev/z8530tty.c
+++ b/sys/arch/sparc64/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.15 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.16 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: z8530tty.c,v 1.77 2001/05/30 15:24:24 lukem Exp $ */
/*-
@@ -776,6 +776,7 @@ zsstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}
diff --git a/sys/arch/vax/qbus/dhu.c b/sys/arch/vax/qbus/dhu.c
index ebcfd18277b..cbd8c52e7ef 100644
--- a/sys/arch/vax/qbus/dhu.c
+++ b/sys/arch/vax/qbus/dhu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhu.c,v 1.12 2004/09/19 21:34:42 mickey Exp $ */
+/* $OpenBSD: dhu.c,v 1.13 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: dhu.c,v 1.19 2000/06/04 06:17:01 matt Exp $ */
/*
* Copyright (c) 2003, Hugh Graham.
@@ -645,6 +645,7 @@ dhustart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc == 0)
goto out;
diff --git a/sys/arch/vax/qbus/dl.c b/sys/arch/vax/qbus/dl.c
index 4339f9d29ec..483fe9559af 100644
--- a/sys/arch/vax/qbus/dl.c
+++ b/sys/arch/vax/qbus/dl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dl.c,v 1.6 2008/06/26 05:42:14 ray Exp $ */
+/* $OpenBSD: dl.c,v 1.7 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: dl.c,v 1.11 2000/01/24 02:40:29 matt Exp $ */
/*-
@@ -464,6 +464,7 @@ dlstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc == 0)
goto out;
diff --git a/sys/arch/vax/qbus/dz.c b/sys/arch/vax/qbus/dz.c
index 3ce7edc9313..ba42e67dab8 100644
--- a/sys/arch/vax/qbus/dz.c
+++ b/sys/arch/vax/qbus/dz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dz.c,v 1.17 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: dz.c,v 1.18 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: dz.c,v 1.23 2000/06/04 02:14:12 matt Exp $ */
/*
* Copyright (c) 1996 Ken C. Wellsch. All rights reserved.
@@ -480,6 +480,7 @@ dzstart(struct tty *tp)
wakeup((caddr_t)cl);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (cl->c_cc == 0) {
splx(s);
diff --git a/sys/arch/vax/qbus/qd.c b/sys/arch/vax/qbus/qd.c
index dc8899c3a67..0a452e5099b 100644
--- a/sys/arch/vax/qbus/qd.c
+++ b/sys/arch/vax/qbus/qd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qd.c,v 1.14 2008/08/24 14:49:58 miod Exp $ */
+/* $OpenBSD: qd.c,v 1.15 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: qd.c,v 1.17 2000/01/24 02:40:29 matt Exp $ */
/*-
@@ -2065,6 +2065,7 @@ qddint(arg)
if (qdrsel[dv->dv_unit].si_pid && qdflags[dv->dv_unit].selmask & SEL_WRITE) {
selwakeup(&qdrsel[dv->dv_unit]);
+ KNOTE(&qdrsel[dv->dv_unit].si_note, 0);
qdrsel[dv->dv_unit].si_pid = 0;
qdflags[dv->dv_unit].selmask &= ~SEL_WRITE;
}
@@ -2084,6 +2085,7 @@ qddint(arg)
if (DMA_ISFULL(header)) {
if (qdrsel[dv->dv_unit].si_pid && qdflags[dv->dv_unit].selmask & SEL_WRITE) {
selwakeup(&qdrsel[dv->dv_unit]);
+ KNOTE(&qdrsel[dv->dv_unit].si_note, 0);
qdrsel[dv->dv_unit].si_pid = 0;
qdflags[dv->dv_unit].selmask &= ~SEL_WRITE;
}
@@ -2104,6 +2106,7 @@ qddint(arg)
if (DMA_ISEMPTY(header)) {
if (qdrsel[dv->dv_unit].si_pid && qdflags[dv->dv_unit].selmask & SEL_WRITE) {
selwakeup(&qdrsel[dv->dv_unit]);
+ KNOTE(&qdrsel[dv->dv_unit].si_note, 0);
qdrsel[dv->dv_unit].si_pid = 0;
qdflags[dv->dv_unit].selmask &= ~SEL_WRITE;
}
@@ -2737,6 +2740,7 @@ GET_TBUTTON:
*/
if (qdrsel[dv->dv_unit].si_pid && do_wakeup && qdflags[dv->dv_unit].selmask & SEL_READ) {
selwakeup(&qdrsel[dv->dv_unit]);
+ KNOTE(&qdrsel[dv->dv_unit].si_note, 0);
qdrsel[dv->dv_unit].si_pid = 0;
qdflags[dv->dv_unit].selmask &= ~SEL_READ;
do_wakeup = 0;
diff --git a/sys/arch/vax/vax/gencons.c b/sys/arch/vax/vax/gencons.c
index 5158f4205ea..a66f7740049 100644
--- a/sys/arch/vax/vax/gencons.c
+++ b/sys/arch/vax/vax/gencons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gencons.c,v 1.18 2008/01/23 16:37:57 jsing Exp $ */
+/* $OpenBSD: gencons.c,v 1.19 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: gencons.c,v 1.22 2000/01/24 02:40:33 matt Exp $ */
/*
@@ -192,6 +192,7 @@ gencnstart(struct tty *tp)
wakeup((caddr_t)cl);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
out: splx(s);
diff --git a/sys/arch/vax/vxt/qsc.c b/sys/arch/vax/vxt/qsc.c
index c69b4b950be..3d932229682 100644
--- a/sys/arch/vax/vxt/qsc.c
+++ b/sys/arch/vax/vxt/qsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qsc.c,v 1.2 2008/01/23 16:37:57 jsing Exp $ */
+/* $OpenBSD: qsc.c,v 1.3 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
@@ -351,6 +351,7 @@ qscstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto bail;
}
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c
index 7c1532b3014..a247d866226 100644
--- a/sys/dev/ic/com.c
+++ b/sys/dev/ic/com.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com.c,v 1.132 2009/10/13 19:33:16 pirofti Exp $ */
+/* $OpenBSD: com.c,v 1.133 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */
/*
@@ -902,6 +902,7 @@ comstart(struct tty *tp)
if (tp->t_outq.c_cc == 0)
goto stopped;
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
SET(tp->t_state, TS_BUSY);
diff --git a/sys/dev/ic/cy.c b/sys/dev/ic/cy.c
index cda20beff29..500019dc850 100644
--- a/sys/dev/ic/cy.c
+++ b/sys/dev/ic/cy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cy.c,v 1.25 2005/11/21 18:16:39 millert Exp $ */
+/* $OpenBSD: cy.c,v 1.26 2009/10/31 06:40:17 deraadt Exp $ */
/*
* Copyright (c) 1996 Timo Rossi.
* All rights reserved.
@@ -629,6 +629,7 @@ cystart(tp)
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
diff --git a/sys/dev/ic/z8530tty.c b/sys/dev/ic/z8530tty.c
index 10ddebc1996..9a516f1e43c 100644
--- a/sys/dev/ic/z8530tty.c
+++ b/sys/dev/ic/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.17 2008/01/18 21:36:43 kettenis Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.18 2009/10/31 06:40:17 deraadt Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*
@@ -606,6 +606,7 @@ zsstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
nch = ndqb(&tp->t_outq, 0); /* XXX */
diff --git a/sys/dev/pci/bktr/bktr_core.c b/sys/dev/pci/bktr/bktr_core.c
index fa412985c1f..a4cde5e1ea9 100644
--- a/sys/dev/pci/bktr/bktr_core.c
+++ b/sys/dev/pci/bktr/bktr_core.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bktr_core.c,v 1.26 2007/11/26 09:28:34 martynas Exp $ */
+/* $OpenBSD: bktr_core.c,v 1.27 2009/10/31 06:40:17 deraadt Exp $ */
/* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */
/*
@@ -657,6 +657,7 @@ common_bktr_intr( void *arg )
if (bktr->vbi_select.si_selpid) {
#endif
selwakeup(&bktr->vbi_select);
+ KNOTE(&bktr->vbi_select.si_note, 0);
}
}
diff --git a/sys/dev/pci/cz.c b/sys/dev/pci/cz.c
index 6a057aa6c32..91b151f68fb 100644
--- a/sys/dev/pci/cz.c
+++ b/sys/dev/pci/cz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cz.c,v 1.11 2009/01/11 16:54:59 blambert Exp $ */
+/* $OpenBSD: cz.c,v 1.12 2009/10/31 06:40:17 deraadt Exp $ */
/* $NetBSD: cz.c,v 1.15 2001/01/20 19:10:36 thorpej Exp $ */
/*-
@@ -1486,6 +1486,7 @@ czttystart(struct tty *tp)
wakeup(&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}
diff --git a/sys/dev/sbus/magma.c b/sys/dev/sbus/magma.c
index 8d44f4254ea..f79c7f8413d 100644
--- a/sys/dev/sbus/magma.c
+++ b/sys/dev/sbus/magma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: magma.c,v 1.17 2008/11/29 05:56:41 deraadt Exp $ */
+/* $OpenBSD: magma.c,v 1.18 2009/10/31 06:40:17 deraadt Exp $ */
/*-
* Copyright (c) 1998 Iain Hibbert
@@ -1123,6 +1123,7 @@ mtty_start(struct tty *tp)
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
/* if something to send, start transmitting
diff --git a/sys/dev/sbus/spif.c b/sys/dev/sbus/spif.c
index 830180322ad..febec144e0c 100644
--- a/sys/dev/sbus/spif.c
+++ b/sys/dev/sbus/spif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spif.c,v 1.13 2006/03/04 13:00:55 miod Exp $ */
+/* $OpenBSD: spif.c,v 1.14 2009/10/31 06:40:17 deraadt Exp $ */
/*
* Copyright (c) 1999-2002 Jason L. Wright (jason@thought.net)
@@ -746,6 +746,7 @@ stty_start(tp)
wakeup(&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc) {
sp->sp_txc = ndqb(&tp->t_outq, 0);
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c
index 2ad38420036..f3ede4462d1 100644
--- a/sys/dev/systrace.c
+++ b/sys/dev/systrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.c,v 1.50 2009/07/09 22:29:55 thib Exp $ */
+/* $OpenBSD: systrace.c,v 1.51 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -609,6 +609,7 @@ systrace_wakeup(struct fsystrace *fst)
{
wakeup((caddr_t)fst);
selwakeup(&fst->si);
+ KNOTE(&fst->si.si_note, 0);
}
struct proc *
diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c
index 1de3fca03ec..a0e1b28c731 100644
--- a/sys/dev/usb/ucom.c
+++ b/sys/dev/usb/ucom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ucom.c,v 1.43 2009/10/13 19:33:17 pirofti Exp $ */
+/* $OpenBSD: ucom.c,v 1.44 2009/10/31 06:40:17 deraadt Exp $ */
/* $NetBSD: ucom.c,v 1.49 2003/01/01 00:10:25 thorpej Exp $ */
/*
@@ -949,6 +949,7 @@ ucomstart(struct tty *tp)
wakeup(&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}
diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c
index c4998f7e2fd..c90c58dcc5a 100644
--- a/sys/dev/usb/ugen.c
+++ b/sys/dev/usb/ugen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ugen.c,v 1.59 2009/10/13 19:33:17 pirofti Exp $ */
+/* $OpenBSD: ugen.c,v 1.60 2009/10/31 06:40:17 deraadt Exp $ */
/* $NetBSD: ugen.c,v 1.63 2002/11/26 18:49:48 christos Exp $ */
/* $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -822,6 +822,7 @@ ugenintr(usbd_xfer_handle xfer, usbd_private_handle addr, usbd_status status)
wakeup(sce);
}
selwakeup(&sce->rsel);
+ KNOTE(&sce->rsel.si_note, 0);
}
void
@@ -881,6 +882,7 @@ ugen_isoc_rintr(usbd_xfer_handle xfer, usbd_private_handle addr,
wakeup(sce);
}
selwakeup(&sce->rsel);
+ KNOTE(&sce->rsel.si_note, 0);
}
usbd_status
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index f9af66a7437..76e0dda1246 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhid.c,v 1.44 2009/10/13 19:33:19 pirofti Exp $ */
+/* $OpenBSD: uhid.c,v 1.45 2009/10/31 06:40:17 deraadt Exp $ */
/* $NetBSD: uhid.c,v 1.57 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -234,6 +234,7 @@ uhid_intr(struct uhidev *addr, void *data, u_int len)
wakeup(&sc->sc_q);
}
selwakeup(&sc->sc_rsel);
+ KNOTE(&sc->sc_rsel.si_note, 0);
if (sc->sc_async != NULL) {
DPRINTFN(3, ("uhid_intr: sending SIGIO %p\n", sc->sc_async));
psignal(sc->sc_async, SIGIO);
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index d64559e56be..222aa200cd5 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb.c,v 1.59 2009/10/13 19:33:19 pirofti Exp $ */
+/* $OpenBSD: usb.c,v 1.60 2009/10/31 06:40:17 deraadt Exp $ */
/* $NetBSD: usb.c,v 1.77 2003/01/01 00:10:26 thorpej Exp $ */
/*
@@ -770,6 +770,7 @@ usb_add_event(int type, struct usb_event *uep)
SIMPLEQ_INSERT_TAIL(&usb_events, ueq, next);
wakeup(&usb_events);
selwakeup(&usb_selevent);
+ KNOTE(&usb_selevent.si_note, 0);
if (usb_async_proc != NULL)
psignal(usb_async_proc, SIGIO);
splx(s);