summaryrefslogtreecommitdiff
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2023-02-10 14:34:18 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2023-02-10 14:34:18 +0000
commit04d3413ff78e66f127de3749e6564ba940ff320e (patch)
tree8d0adc2e66658136bd528d87b27b8bce64fce574 /sys/net/bpf.c
parent36d295960f2bd4394d4ae7685b11fcb6cdf82d9f (diff)
Adjust knote(9) API
Make knote(9) lock the knote list internally, and add knote_locked(9) for the typical situation where the list is already locked. Remove the KNOTE(9) macro to simplify the API. Manual page OK jmc@ OK mpi@ mvs@
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index cadd105134e..3ac175e459a 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.219 2022/07/09 12:48:21 visa Exp $ */
+/* $OpenBSD: bpf.c,v 1.220 2023/02/10 14:34:17 visa Exp $ */
/* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */
/*
@@ -586,7 +586,7 @@ bpf_wakeup(struct bpf_d *d)
if (d->bd_nreaders)
wakeup(d);
- KNOTE(&d->bd_klist, 0);
+ knote_locked(&d->bd_klist, 0);
/*
* As long as pgsigio() needs to be protected