summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2022-02-12 15:51:28 +0000
committerthorpej <thorpej@NetBSD.org>2022-02-12 15:51:28 +0000
commit819b3848b3ef6d1a09d64c97167ba355230a972f (patch)
tree4d3267cf6f0011aa5ddc0052cc75de21fdc9f70c /sys/dev
parentce51d50e043fa14d8d782e663e5314beb4b595de (diff)
Add inline functions to manipulate the klists that link up knotes
via kn_selnext: - klist_init() - klist_fini() - klist_insert() - klist_remove() These provide some API insulation from the implementation details of these lists (but not completely; see vn_knote_attach() and vn_knote_detach()). Currently just a wrapper around SLIST(9). This will make it significantly easier to switch kn_selnext linkage to a different kind of list.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/xmm7360.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/pci/xmm7360.c b/sys/dev/pci/xmm7360.c
index f30cc77a70b..20293f42271 100644
--- a/sys/dev/pci/xmm7360.c
+++ b/sys/dev/pci/xmm7360.c
@@ -1,4 +1,4 @@
-/* $NetBSD: xmm7360.c,v 1.14 2022/02/12 03:24:36 riastradh Exp $ */
+/* $NetBSD: xmm7360.c,v 1.15 2022/02/12 15:51:29 thorpej Exp $ */
/*
* Device driver for Intel XMM7360 LTE modems, eg. Fibocom L850-GL.
@@ -75,7 +75,7 @@ MODULE_DEVICE_TABLE(pci, xmm7360_ids);
#include "opt_gateway.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xmm7360.c,v 1.14 2022/02/12 03:24:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xmm7360.c,v 1.15 2022/02/12 15:51:29 thorpej Exp $");
#endif
#include <sys/param.h>
@@ -258,10 +258,6 @@ typedef struct kmutex spinlock_t;
#define if_hardmtu if_mtu
#define IF_OUTPUT_CONST const
#define si_note sel_klist
-#define klist_insert(klist, kn) \
- SLIST_INSERT_HEAD(klist, kn, kn_selnext)
-#define klist_remove(klist, kn) \
- SLIST_REMOVE(klist, kn, knote, kn_selnext)
#define XMM_KQ_ISFD_INITIALIZER .f_flags = FILTEROP_ISFD
#define tty_lock() mutex_spin_enter(&tty_lock)
#define tty_unlock() mutex_spin_exit(&tty_lock)