summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-05-01 20:44:46 +0000
committeralfred <alfred@FreeBSD.org>2002-05-01 20:44:46 +0000
commit798c53d495a4eb1c10dc65a1d2ca87e2cb12f8df (patch)
tree47fe7acf6ad89bf88d96ff3e57b5a8e31207cbf6 /sys/net/bpf.c
parent97feabed08c26b8c53c3d7fd222d27f5c7433f82 (diff)
downloadFreeBSD-src-798c53d495a4eb1c10dc65a1d2ca87e2cb12f8df.zip
FreeBSD-src-798c53d495a4eb1c10dc65a1d2ca87e2cb12f8df.tar.gz
Redo the sigio locking.
Turn the sigio sx into a mutex. Sigio lock is really only needed to protect interrupts from dereferencing the sigio pointer in an object when the sigio itself is being destroyed. In order to do this in the most unintrusive manner change pgsigio's sigio * argument into a **, that way we can lock internally to the function.
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 0077e51..325af54 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -511,7 +511,7 @@ bpf_wakeup(d)
}
wakeup((caddr_t)d);
if (d->bd_async && d->bd_sig && d->bd_sigio)
- pgsigio(d->bd_sigio, d->bd_sig, 0);
+ pgsigio(&d->bd_sigio, d->bd_sig, 0);
selwakeup(&d->bd_sel);
}
OpenPOWER on IntegriCloud