Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/prg-localcount2]: src/sys/net Add a localcount to the devsw so it can be...



details:   https://anonhg.NetBSD.org/src/rev/8d646c41c2be
branches:  prg-localcount2
changeset: 823518:8d646c41c2be
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Apr 28 03:46:57 2017 +0000

description:
Add a localcount to the devsw so it can be loaded as a rump module

diffstat:

 sys/net/if_tun.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r f2284e55dfff -r 8d646c41c2be sys/net/if_tun.c
--- a/sys/net/if_tun.c  Fri Apr 28 03:41:26 2017 +0000
+++ b/sys/net/if_tun.c  Fri Apr 28 03:46:57 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tun.c,v 1.138 2017/01/29 18:30:33 maya Exp $        */
+/*     $NetBSD: if_tun.c,v 1.138.4.1 2017/04/28 03:46:57 pgoyette Exp $        */
 
 /*
  * Copyright (c) 1988, Julian Onions <jpo%cs.nott.ac.uk@localhost>
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.138 2017/01/29 18:30:33 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.138.4.1 2017/04/28 03:46:57 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -35,6 +35,7 @@
 #include <sys/ioctl.h>
 #include <sys/kauth.h>
 #include <sys/kmem.h>
+#include <sys/localcount.h>
 #include <sys/lwp.h>
 #include <sys/mbuf.h>
 #include <sys/module.h>
@@ -98,6 +99,7 @@
 static dev_type_kqfilter(tunkqfilter);
 
 const struct cdevsw tun_cdevsw = {
+       DEVSW_MODULE_INIT
        .d_open = tunopen,
        .d_close = tunclose,
        .d_read = tunread,



Home | Main Index | Thread Index | Old Index