Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/dev/lib/libbpf let attach via module space



details:   https://anonhg.NetBSD.org/src/rev/2321f70fa84d
branches:  trunk
changeset: 751163:2321f70fa84d
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Jan 26 17:50:02 2010 +0000

description:
let attach via module space

diffstat:

 sys/rump/dev/lib/libbpf/component.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r 241ec91adbb7 -r 2321f70fa84d sys/rump/dev/lib/libbpf/component.c
--- a/sys/rump/dev/lib/libbpf/component.c       Tue Jan 26 17:41:20 2010 +0000
+++ b/sys/rump/dev/lib/libbpf/component.c       Tue Jan 26 17:50:02 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: component.c,v 1.1 2010/01/19 22:38:21 pooka Exp $      */
+/*     $NetBSD: component.c,v 1.2 2010/01/26 17:50:02 pooka Exp $      */
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.1 2010/01/19 22:38:21 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.2 2010/01/26 17:50:02 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -39,8 +39,6 @@
 #include "rump_dev_private.h"
 #include "rump_vfs_private.h"
 
-void bpfilterattach(int);
-
 void
 rump_dev_bpf_init()
 {
@@ -53,6 +51,4 @@
                panic("bpf devsw attach failed: %d", error);
        if ((error = rump_vfs_makeonedevnode(S_IFCHR, "/dev/bpf", cmaj, 0)) !=0)
                panic("cannot create bpf device nodes: %d", error);
-
-       rump_pdev_add(bpfilterattach, 1);
 }



Home | Main Index | Thread Index | Old Index