1*00e5ca99Spooka /* $NetBSD: rumpkern_if_wrappers.c,v 1.18 2016/01/26 23:25:41 pooka Exp $ */
2796b2444Spooka
3796b2444Spooka /*
4796b2444Spooka * Automatically generated. DO NOT EDIT.
5*00e5ca99Spooka * from: NetBSD: rumpkern.ifspec,v 1.14 2016/01/26 23:22:22 pooka Exp
6*00e5ca99Spooka * by: NetBSD: makerumpif.sh,v 1.10 2016/01/26 23:21:18 pooka Exp
7796b2444Spooka */
8796b2444Spooka
9796b2444Spooka #include <sys/cdefs.h>
10796b2444Spooka #include <sys/systm.h>
11796b2444Spooka
126bb51422Spooka #include <rump-sys/kern.h>
13*00e5ca99Spooka #include <rump-sys/kern_if.h>
146bb51422Spooka
15796b2444Spooka #include <rump/rump.h>
16796b2444Spooka #include <rump/rumpkern_if_pub.h>
17796b2444Spooka
18796b2444Spooka void __dead rump_kern_unavailable(void);
19796b2444Spooka void __dead
rump_kern_unavailable(void)20796b2444Spooka rump_kern_unavailable(void)
21796b2444Spooka {
22796b2444Spooka
23796b2444Spooka panic("kern interface unavailable");
24796b2444Spooka }
25796b2444Spooka
26796b2444Spooka int
rump_pub_module_init(const struct modinfo * const * arg1,size_t arg2)2752672c7eSpooka rump_pub_module_init(const struct modinfo * const *arg1, size_t arg2)
28796b2444Spooka {
29796b2444Spooka int rv;
30796b2444Spooka
31000a1973Spooka rump_schedule();
32a6f92a2bSpooka rv = rump_module_init(arg1, arg2);
33000a1973Spooka rump_unschedule();
34796b2444Spooka
35796b2444Spooka return rv;
36796b2444Spooka }
37796b2444Spooka
38796b2444Spooka int
rump_pub_module_fini(const struct modinfo * arg1)3952672c7eSpooka rump_pub_module_fini(const struct modinfo *arg1)
40796b2444Spooka {
41796b2444Spooka int rv;
42796b2444Spooka
43000a1973Spooka rump_schedule();
44a6f92a2bSpooka rv = rump_module_fini(arg1);
45000a1973Spooka rump_unschedule();
46796b2444Spooka
47796b2444Spooka return rv;
48796b2444Spooka }
49796b2444Spooka
504f28ef32Spooka int
rump_pub_kernelfsym_load(void * arg1,uint64_t arg2,char * arg3,uint64_t arg4)514f28ef32Spooka rump_pub_kernelfsym_load(void *arg1, uint64_t arg2, char *arg3, uint64_t arg4)
524f28ef32Spooka {
534f28ef32Spooka int rv;
544f28ef32Spooka
554f28ef32Spooka rump_schedule();
564f28ef32Spooka rv = rump_kernelfsym_load(arg1, arg2, arg3, arg4);
574f28ef32Spooka rump_unschedule();
584f28ef32Spooka
594f28ef32Spooka return rv;
604f28ef32Spooka }
614f28ef32Spooka
62796b2444Spooka struct uio *
rump_pub_uio_setup(void * arg1,size_t arg2,off_t arg3,enum rump_uiorw arg4)63a6f92a2bSpooka rump_pub_uio_setup(void *arg1, size_t arg2, off_t arg3, enum rump_uiorw arg4)
64796b2444Spooka {
65796b2444Spooka struct uio * rv;
66796b2444Spooka
67000a1973Spooka rump_schedule();
68a6f92a2bSpooka rv = rump_uio_setup(arg1, arg2, arg3, arg4);
69000a1973Spooka rump_unschedule();
70796b2444Spooka
71796b2444Spooka return rv;
72796b2444Spooka }
73796b2444Spooka
74796b2444Spooka size_t
rump_pub_uio_getresid(struct uio * arg1)75a6f92a2bSpooka rump_pub_uio_getresid(struct uio *arg1)
76796b2444Spooka {
77796b2444Spooka size_t rv;
78796b2444Spooka
79000a1973Spooka rump_schedule();
80a6f92a2bSpooka rv = rump_uio_getresid(arg1);
81000a1973Spooka rump_unschedule();
82796b2444Spooka
83796b2444Spooka return rv;
84796b2444Spooka }
85796b2444Spooka
86796b2444Spooka off_t
rump_pub_uio_getoff(struct uio * arg1)87a6f92a2bSpooka rump_pub_uio_getoff(struct uio *arg1)
88796b2444Spooka {
89796b2444Spooka off_t rv;
90796b2444Spooka
91000a1973Spooka rump_schedule();
92a6f92a2bSpooka rv = rump_uio_getoff(arg1);
93000a1973Spooka rump_unschedule();
94796b2444Spooka
95796b2444Spooka return rv;
96796b2444Spooka }
97796b2444Spooka
98796b2444Spooka size_t
rump_pub_uio_free(struct uio * arg1)99a6f92a2bSpooka rump_pub_uio_free(struct uio *arg1)
100796b2444Spooka {
101796b2444Spooka size_t rv;
102796b2444Spooka
103000a1973Spooka rump_schedule();
104a6f92a2bSpooka rv = rump_uio_free(arg1);
105000a1973Spooka rump_unschedule();
106796b2444Spooka
107796b2444Spooka return rv;
108796b2444Spooka }
109796b2444Spooka
110171f2102Spooka struct kauth_cred*
rump_pub_cred_create(uid_t arg1,gid_t arg2,size_t arg3,gid_t * arg4)111a6f92a2bSpooka rump_pub_cred_create(uid_t arg1, gid_t arg2, size_t arg3, gid_t *arg4)
112796b2444Spooka {
113171f2102Spooka struct kauth_cred* rv;
114796b2444Spooka
115000a1973Spooka rump_schedule();
116a6f92a2bSpooka rv = rump_cred_create(arg1, arg2, arg3, arg4);
117000a1973Spooka rump_unschedule();
118796b2444Spooka
119796b2444Spooka return rv;
120796b2444Spooka }
121796b2444Spooka
122796b2444Spooka void
rump_pub_cred_put(struct kauth_cred * arg1)123171f2102Spooka rump_pub_cred_put(struct kauth_cred *arg1)
124796b2444Spooka {
125796b2444Spooka
126000a1973Spooka rump_schedule();
127a6f92a2bSpooka rump_cred_put(arg1);
128000a1973Spooka rump_unschedule();
129796b2444Spooka }
130796b2444Spooka
131073d0401Spooka int
rump_pub_lwproc_rfork(int arg1)132afa6c203Spooka rump_pub_lwproc_rfork(int arg1)
133796b2444Spooka {
134073d0401Spooka int rv;
135796b2444Spooka
136000a1973Spooka rump_schedule();
137afa6c203Spooka rv = rump_lwproc_rfork(arg1);
138000a1973Spooka rump_unschedule();
139796b2444Spooka
140796b2444Spooka return rv;
141796b2444Spooka }
142796b2444Spooka
143073d0401Spooka int
rump_pub_lwproc_newlwp(pid_t arg1)144073d0401Spooka rump_pub_lwproc_newlwp(pid_t arg1)
145796b2444Spooka {
146073d0401Spooka int rv;
147796b2444Spooka
148000a1973Spooka rump_schedule();
149073d0401Spooka rv = rump_lwproc_newlwp(arg1);
150000a1973Spooka rump_unschedule();
151796b2444Spooka
152796b2444Spooka return rv;
153796b2444Spooka }
154796b2444Spooka
155796b2444Spooka void
rump_pub_lwproc_switch(struct lwp * arg1)156073d0401Spooka rump_pub_lwproc_switch(struct lwp *arg1)
157796b2444Spooka {
158796b2444Spooka
159000a1973Spooka rump_schedule();
160073d0401Spooka rump_lwproc_switch(arg1);
161000a1973Spooka rump_unschedule();
162796b2444Spooka }
163796b2444Spooka
164796b2444Spooka void
rump_pub_lwproc_releaselwp(void)165073d0401Spooka rump_pub_lwproc_releaselwp(void)
166796b2444Spooka {
167796b2444Spooka
168000a1973Spooka rump_schedule();
169073d0401Spooka rump_lwproc_releaselwp();
170073d0401Spooka rump_unschedule();
171073d0401Spooka }
172073d0401Spooka
173073d0401Spooka struct lwp *
rump_pub_lwproc_curlwp(void)174073d0401Spooka rump_pub_lwproc_curlwp(void)
175073d0401Spooka {
176073d0401Spooka struct lwp * rv;
177073d0401Spooka
178073d0401Spooka rump_schedule();
179073d0401Spooka rv = rump_lwproc_curlwp();
180073d0401Spooka rump_unschedule();
181073d0401Spooka
182073d0401Spooka return rv;
183073d0401Spooka }
184073d0401Spooka
185073d0401Spooka void
rump_pub_lwproc_sysent_usenative(void)1869c88b503Spooka rump_pub_lwproc_sysent_usenative(void)
1879c88b503Spooka {
1889c88b503Spooka
1899c88b503Spooka rump_schedule();
1909c88b503Spooka rump_lwproc_sysent_usenative();
1919c88b503Spooka rump_unschedule();
1929c88b503Spooka }
1939c88b503Spooka
1949c88b503Spooka void
rump_pub_allbetsareoff_setid(pid_t arg1,int arg2)195073d0401Spooka rump_pub_allbetsareoff_setid(pid_t arg1, int arg2)
196073d0401Spooka {
197073d0401Spooka
198073d0401Spooka rump_schedule();
199073d0401Spooka rump_allbetsareoff_setid(arg1, arg2);
200000a1973Spooka rump_unschedule();
201796b2444Spooka }
202a49c8146Spooka
203a49c8146Spooka int
rump_pub_etfs_register(const char * arg1,const char * arg2,enum rump_etfs_type arg3)204a49c8146Spooka rump_pub_etfs_register(const char *arg1, const char *arg2, enum rump_etfs_type arg3)
205a49c8146Spooka {
206a49c8146Spooka int rv;
207a49c8146Spooka
208a49c8146Spooka rump_schedule();
209a49c8146Spooka rv = rump_etfs_register(arg1, arg2, arg3);
210a49c8146Spooka rump_unschedule();
211a49c8146Spooka
212a49c8146Spooka return rv;
213a49c8146Spooka }
214a49c8146Spooka
215a49c8146Spooka int
rump_pub_etfs_register_withsize(const char * arg1,const char * arg2,enum rump_etfs_type arg3,uint64_t arg4,uint64_t arg5)216a49c8146Spooka rump_pub_etfs_register_withsize(const char *arg1, const char *arg2, enum rump_etfs_type arg3, uint64_t arg4, uint64_t arg5)
217a49c8146Spooka {
218a49c8146Spooka int rv;
219a49c8146Spooka
220a49c8146Spooka rump_schedule();
221a49c8146Spooka rv = rump_etfs_register_withsize(arg1, arg2, arg3, arg4, arg5);
222a49c8146Spooka rump_unschedule();
223a49c8146Spooka
224a49c8146Spooka return rv;
225a49c8146Spooka }
226a49c8146Spooka
227a49c8146Spooka int
rump_pub_etfs_remove(const char * arg1)228a49c8146Spooka rump_pub_etfs_remove(const char *arg1)
229a49c8146Spooka {
230a49c8146Spooka int rv;
231a49c8146Spooka
232a49c8146Spooka rump_schedule();
233a49c8146Spooka rv = rump_etfs_remove(arg1);
234a49c8146Spooka rump_unschedule();
235a49c8146Spooka
236a49c8146Spooka return rv;
237a49c8146Spooka }
238