diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2020-04-07 13:27:53 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2020-04-07 13:27:53 +0000 |
commit | 31b8aeb32e081f42e1ec7f34094de4351458aed3 (patch) | |
tree | 620f7a0227efbc1b17d8b8e8b070acdf3c1c0436 /sys/kern/tty_pty.c | |
parent | a469bdd2f75259dda9613501bb83503033815c3c (diff) |
Abstract the head of knote lists. This allows extending the lists,
for example, with locking assertions.
OK mpi@, anton@
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r-- | sys/kern/tty_pty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index e5b821dfce1..2152bcde86a 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_pty.c,v 1.97 2020/02/20 16:56:52 visa Exp $ */ +/* $OpenBSD: tty_pty.c,v 1.98 2020/04/07 13:27:51 visa Exp $ */ /* $NetBSD: tty_pty.c,v 1.33.4.1 1996/06/02 09:08:11 mrg Exp $ */ /* @@ -655,7 +655,7 @@ filt_ptcrdetach(struct knote *kn) int s; s = spltty(); - SLIST_REMOVE(&pti->pt_selr.si_note, kn, knote, kn_selnext); + klist_remove(&pti->pt_selr.si_note, kn); splx(s); } @@ -691,7 +691,7 @@ filt_ptcwdetach(struct knote *kn) int s; s = spltty(); - SLIST_REMOVE(&pti->pt_selw.si_note, kn, knote, kn_selnext); + klist_remove(&pti->pt_selw.si_note, kn); splx(s); } @@ -753,7 +753,7 @@ ptckqfilter(dev_t dev, struct knote *kn) kn->kn_hook = (caddr_t)pti; s = spltty(); - SLIST_INSERT_HEAD(klist, kn, kn_selnext); + klist_insert(klist, kn); splx(s); return (0); |