xref: /netbsd-src/sys/rump/librump/rumpnet/rumpnet_if_wrappers.c (revision a5847cc334d9a7029f6352b847e9e8d71a0f9e0c)
1 /*	$NetBSD: rumpnet_if_wrappers.c,v 1.4 2009/10/20 23:29:39 pooka Exp $	*/
2 
3 /*
4  * Automatically generated.  DO NOT EDIT.
5  * from: NetBSD: rumpnet.ifspec,v 1.2 2009/10/20 23:28:50 pooka Exp
6  * by:   NetBSD: makerumpif.sh,v 1.4 2009/10/15 00:29:19 pooka Exp
7  */
8 
9 #include <sys/cdefs.h>
10 #include <sys/systm.h>
11 
12 #include <rump/rump.h>
13 #include <rump/rumpnet_if_pub.h>
14 
15 #include "rump_private.h"
16 #include "rumpnet_if_priv.h"
17 
18 void __dead rump_net_unavailable(void);
19 void __dead
20 rump_net_unavailable(void)
21 {
22 
23 	panic("net interface unavailable");
24 }
25 
26 int
27 rump_pub_virtif_create(int arg1)
28 {
29 	int rv;
30 
31 	rump_schedule();
32 	rv = rump_virtif_create(arg1);
33 	rump_unschedule();
34 
35 	return rv;
36 }
37 __weak_alias(rump_virtif_create,rump_net_unavailable);
38 
39 int
40 rump_pub_shmif_create(const char *arg1, int *arg2)
41 {
42 	int rv;
43 
44 	rump_schedule();
45 	rv = rump_shmif_create(arg1, arg2);
46 	rump_unschedule();
47 
48 	return rv;
49 }
50 __weak_alias(rump_shmif_create,rump_net_unavailable);
51