Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-localcount]: src/sys/dev/pud Another driver that needs its 'str...
details: https://anonhg.NetBSD.org/src/rev/058325e57284
branches: pgoyette-localcount
changeset: 852818:058325e57284
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Jul 18 21:55:44 2016 +0000
description:
Another driver that needs its 'struct localcount' since it is used in rump.
diffstat:
sys/dev/pud/pud_dev.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (57 lines):
diff -r ddbbb8bd0198 -r 058325e57284 sys/dev/pud/pud_dev.c
--- a/sys/dev/pud/pud_dev.c Mon Jul 18 21:18:49 2016 +0000
+++ b/sys/dev/pud/pud_dev.c Mon Jul 18 21:55:44 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pud_dev.c,v 1.7 2015/12/08 20:36:15 christos Exp $ */
+/* $NetBSD: pud_dev.c,v 1.7.2.1 2016/07/18 21:55:44 pgoyette Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pud_dev.c,v 1.7 2015/12/08 20:36:15 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pud_dev.c,v 1.7.2.1 2016/07/18 21:55:44 pgoyette Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -39,6 +39,7 @@
#include <sys/kmem.h>
#include <sys/poll.h>
#include <sys/socketvar.h>
+#include <sys/localcount.h>
#include <dev/pud/pud_sys.h>
@@ -98,6 +99,10 @@
static dev_type_size(pud_bdev_size);
#endif
+#ifdef _MODULE
+struct localcount pud_b_localcount, pud_c_localcount;
+#endif
+
struct bdevsw pud_bdevsw = {
.d_open = pud_bdev_open,
.d_close = pud_bdev_close,
@@ -107,6 +112,9 @@
.d_dump = pud_bdev_dump,
.d_psize = pud_bdev_size,
#endif
+#ifdef _MODULE
+ .d_localcount = pud_b_localcount,
+#endif
};
static int
@@ -210,6 +218,9 @@
.d_poll = pud_cdev_poll,
.d_mmap = pud_cdev_mmap,
.d_kqfilter = pud_cdev_kqfilter,
+#ifdef _MODULE
+ .d_localcount = pud_b_localcount,
+#endif
.d_flag = D_OTHER,
};
Home |
Main Index |
Thread Index |
Old Index