Home | History | Annotate | Line # | Download | only in rumpnet
      1 /*	$NetBSD: rumpnet_if_wrappers.c,v 1.7 2016/01/26 23:25:41 pooka Exp $	*/
      2 
      3 /*
      4  * Automatically generated.  DO NOT EDIT.
      5  * from: NetBSD: rumpnet.ifspec,v 1.4 2016/01/26 23:22:22 pooka Exp
      6  * by:   NetBSD: makerumpif.sh,v 1.10 2016/01/26 23:21:18 pooka Exp
      7  */
      8 
      9 #include <sys/cdefs.h>
     10 #include <sys/systm.h>
     11 
     12 #include <rump-sys/kern.h>
     13 #include <rump-sys/net_if.h>
     14 
     15 #include <rump/rump.h>
     16 #include <rump/rumpnet_if_pub.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_shmif_create(const char *arg1, int *arg2)
     28 {
     29 	int rv;
     30 
     31 	rump_schedule();
     32 	rv = rump_shmif_create(arg1, arg2);
     33 	rump_unschedule();
     34 
     35 	return rv;
     36 }
     37 __weak_alias(rump_shmif_create,rump_net_unavailable);
     38