Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mac68k/dev Use sel{record,remove}_knote().
details: https://anonhg.NetBSD.org/src/rev/b3e4be0b30b5
branches: trunk
changeset: 957989:b3e4be0b30b5
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Dec 19 21:46:40 2020 +0000
description:
Use sel{record,remove}_knote().
diffstat:
sys/arch/mac68k/dev/aed.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (54 lines):
diff -r 91efebe97201 -r b3e4be0b30b5 sys/arch/mac68k/dev/aed.c
--- a/sys/arch/mac68k/dev/aed.c Sat Dec 19 21:38:30 2020 +0000
+++ b/sys/arch/mac68k/dev/aed.c Sat Dec 19 21:46:40 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aed.c,v 1.34 2017/10/25 08:12:37 maya Exp $ */
+/* $NetBSD: aed.c,v 1.35 2020/12/19 21:46:40 thorpej Exp $ */
/*
* Copyright (C) 1994 Bradley A. Grantham
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aed.c,v 1.34 2017/10/25 08:12:37 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aed.c,v 1.35 2020/12/19 21:46:40 thorpej Exp $");
#include "opt_adb.h"
@@ -585,7 +585,7 @@
int s;
s = splvm();
- SLIST_REMOVE(&aed_sc->sc_selinfo.sel_klist, kn, knote, kn_selnext);
+ selremove_knote(&aed_sc->sc_selinfo, kn);
splx(s);
}
@@ -614,17 +614,14 @@
int
aedkqfilter(dev_t dev, struct knote *kn)
{
- struct klist *klist;
int s;
switch (kn->kn_filter) {
case EVFILT_READ:
- klist = &aed_sc->sc_selinfo.sel_klist;
kn->kn_fop = &aedread_filtops;
break;
case EVFILT_WRITE:
- klist = &aed_sc->sc_selinfo.sel_klist;
kn->kn_fop = &aed_seltrue_filtops;
break;
@@ -635,7 +632,7 @@
kn->kn_hook = NULL;
s = splvm();
- SLIST_INSERT_HEAD(klist, kn, kn_selnext);
+ selrecord_knote(&aed_sc->sc_selinfo, kn);
splx(s);
return (0);
Home |
Main Index |
Thread Index |
Old Index