Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-localcount]: src/sys/dev/putter Another devsw needing a localco...
details: https://anonhg.NetBSD.org/src/rev/a8605821b9f0
branches: pgoyette-localcount
changeset: 852812:a8605821b9f0
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Jul 18 06:25:40 2016 +0000
description:
Another devsw needing a localcount when built as a module.
diffstat:
sys/dev/putter/putter.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (47 lines):
diff -r 550a3af4b8ce -r a8605821b9f0 sys/dev/putter/putter.c
--- a/sys/dev/putter/putter.c Mon Jul 18 03:50:58 2016 +0000
+++ b/sys/dev/putter/putter.c Mon Jul 18 06:25:40 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: putter.c,v 1.35 2014/07/25 08:10:38 dholland Exp $ */
+/* $NetBSD: putter.c,v 1.35.8.1 2016/07/18 06:25:40 pgoyette Exp $ */
/*
* Copyright (c) 2006, 2007 Antti Kantee. All Rights Reserved.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.35 2014/07/25 08:10:38 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.35.8.1 2016/07/18 06:25:40 pgoyette Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -48,6 +48,7 @@
#include <sys/socketvar.h>
#include <sys/module.h>
#include <sys/kauth.h>
+#include <sys/localcount.h>
#include <dev/putter/putter_sys.h>
@@ -61,6 +62,10 @@
dev_type_ioctl(puttercdioctl);
/* dev */
+#ifdef _MODULE
+struct localcount putter_localcount;
+#endif
+
const struct cdevsw putter_cdevsw = {
.d_open = puttercdopen,
.d_close = puttercdclose,
@@ -73,6 +78,9 @@
.d_mmap = nommap,
.d_kqfilter = nokqfilter,
.d_discard = nodiscard,
+#ifdef _MODULE
+ .d_localcount = &putter_localcount,
+#endif
.d_flag = D_OTHER
};
Home |
Main Index |
Thread Index |
Old Index