Source-Changes-HG archive

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

[src/trunk]: src Having a system-supplied function interface to create virt(4...



details:   https://anonhg.NetBSD.org/src/rev/6a48df8105f6
branches:  trunk
changeset: 787794:6a48df8105f6
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jul 03 19:21:11 2013 +0000

description:
Having a system-supplied function interface to create virt(4) is not
fully useful when the system doesn't supply anything to configure the
interface with.  So remove rump_virtif_create(), that functionality
is now taken care of with ifcloner.

diffstat:

 share/man/man4/virt.4                   |  36 ++++++--------------------------
 sys/rump/librump/rumpnet/rumpnet.ifspec |   3 +-
 2 files changed, 8 insertions(+), 31 deletions(-)

diffs (82 lines):

diff -r b533d6f0441b -r 6a48df8105f6 share/man/man4/virt.4
--- a/share/man/man4/virt.4     Wed Jul 03 19:13:33 2013 +0000
+++ b/share/man/man4/virt.4     Wed Jul 03 19:21:11 2013 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: virt.4,v 1.2 2010/11/17 18:03:49 wiz Exp $
+.\"    $NetBSD: virt.4,v 1.3 2013/07/03 19:21:12 pooka Exp $
 .\"
 .\" Copyright (c) 2010 Antti Kantee
 .\" All rights reserved.
@@ -23,22 +23,16 @@
 .\" INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd November 15, 2010
+.Dd July 3, 2013
 .Dt VIRT 4
 .Os
 .Sh NAME
 .Nm virt
-.Nd rump virtual network interface
-.Sh SYNOPSIS
-.In rump/rump.h
-.Ft int
-.Fo rump_pub_virtif_create
-.Fa "int num"
-.Fc
+.Nd rump kernel virtual network interface
 .Sh DESCRIPTION
 The
 .Nm
-interface acts as a link between a rump virtual kernel and a host
+interface acts as a link between a rump kernel and a host
 .Xr tap 4
 interface.
 Interface number <n> always corresponds with the host tap interface tap<n>.
@@ -48,28 +42,12 @@
 .Pa /dev/tap<n>
 and all data read from
 .Pa /dev/tap<n>
-is passed as Ethernet input to the rump virtual kernel.
+is passed as Ethernet input to the rump kernel.
 .Pp
 A
 .Nm
-interface can be created in two ways:
-.Bl -bullet
-.It
-Programmatically by calling
-.Fn rump_pub_virtif_create .
-.It
-Dynamically at runtime with
-.Xr ifconfig 8
-or equivalent using the
-.Em create
-command.
-.El
-.Pp
-Destroying a
-.Nm
-interface is possible only through
-.Xr ifconfig 8
-.Em destroy .
+interface can be created and destroyed in the normal fashion with
+.Xr ifconfig 8 .
 .Pp
 The host's
 .Xr tap 4
diff -r b533d6f0441b -r 6a48df8105f6 sys/rump/librump/rumpnet/rumpnet.ifspec
--- a/sys/rump/librump/rumpnet/rumpnet.ifspec   Wed Jul 03 19:13:33 2013 +0000
+++ b/sys/rump/librump/rumpnet/rumpnet.ifspec   Wed Jul 03 19:21:11 2013 +0000
@@ -1,4 +1,4 @@
-;       $NetBSD: rumpnet.ifspec,v 1.2 2009/10/20 23:28:50 pooka Exp $
+;       $NetBSD: rumpnet.ifspec,v 1.3 2013/07/03 19:21:11 pooka Exp $
 
 NAME|net
 PUBHDR|include/rump/rumpnet_if_pub.h
@@ -8,5 +8,4 @@
 ; type          | name          | args                 | attrs
 ;
 
-int            |virtif_create  |int                    |WEAK
 int            |shmif_create   |const char *, int *    |WEAK



Home | Main Index | Thread Index | Old Index