Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / rump / librump / rumpkern / rumpkern_if_wrappers.c
blobc8d51a626d31ace89bf9207f173805f5745605f0
1 /* $NetBSD: makerumpif.sh,v 1.4 2009/10/15 00:29:19 pooka Exp $ */
3 /*
4 * Automatically generated. DO NOT EDIT.
5 * from: NetBSD: rumpkern.ifspec,v 1.3 2009/11/26 09:20:07 pooka Exp
6 * by: NetBSD: makerumpif.sh,v 1.4 2009/10/15 00:29:19 pooka Exp
7 */
9 #include <sys/cdefs.h>
10 #include <sys/systm.h>
12 #include <rump/rump.h>
13 #include <rump/rumpkern_if_pub.h>
15 #include "rump_private.h"
16 #include "rumpkern_if_priv.h"
18 void __dead rump_kern_unavailable(void);
19 void __dead
20 rump_kern_unavailable(void)
23 panic("kern interface unavailable");
26 void
27 rump_pub_reboot(int arg1)
30 rump_schedule();
31 rump_reboot(arg1);
32 rump_unschedule();
35 int
36 rump_pub_getversion(void)
38 int rv;
40 rump_schedule();
41 rv = rump_getversion();
42 rump_unschedule();
44 return rv;
47 int
48 rump_pub_module_init(struct modinfo *arg1, prop_dictionary_t arg2)
50 int rv;
52 rump_schedule();
53 rv = rump_module_init(arg1, arg2);
54 rump_unschedule();
56 return rv;
59 int
60 rump_pub_module_fini(struct modinfo *arg1)
62 int rv;
64 rump_schedule();
65 rv = rump_module_fini(arg1);
66 rump_unschedule();
68 return rv;
71 int
72 rump_pub_kernelfsym_load(void *arg1, uint64_t arg2, char *arg3, uint64_t arg4)
74 int rv;
76 rump_schedule();
77 rv = rump_kernelfsym_load(arg1, arg2, arg3, arg4);
78 rump_unschedule();
80 return rv;
83 struct uio *
84 rump_pub_uio_setup(void *arg1, size_t arg2, off_t arg3, enum rump_uiorw arg4)
86 struct uio * rv;
88 rump_schedule();
89 rv = rump_uio_setup(arg1, arg2, arg3, arg4);
90 rump_unschedule();
92 return rv;
95 size_t
96 rump_pub_uio_getresid(struct uio *arg1)
98 size_t rv;
100 rump_schedule();
101 rv = rump_uio_getresid(arg1);
102 rump_unschedule();
104 return rv;
107 off_t
108 rump_pub_uio_getoff(struct uio *arg1)
110 off_t rv;
112 rump_schedule();
113 rv = rump_uio_getoff(arg1);
114 rump_unschedule();
116 return rv;
119 size_t
120 rump_pub_uio_free(struct uio *arg1)
122 size_t rv;
124 rump_schedule();
125 rv = rump_uio_free(arg1);
126 rump_unschedule();
128 return rv;
131 kauth_cred_t
132 rump_pub_cred_create(uid_t arg1, gid_t arg2, size_t arg3, gid_t *arg4)
134 kauth_cred_t rv;
136 rump_schedule();
137 rv = rump_cred_create(arg1, arg2, arg3, arg4);
138 rump_unschedule();
140 return rv;
143 kauth_cred_t
144 rump_pub_cred_suserget(void)
146 kauth_cred_t rv;
148 rump_schedule();
149 rv = rump_cred_suserget();
150 rump_unschedule();
152 return rv;
155 void
156 rump_pub_cred_put(kauth_cred_t arg1)
159 rump_schedule();
160 rump_cred_put(arg1);
161 rump_unschedule();
164 struct lwp *
165 rump_pub_newproc_switch(void)
167 struct lwp * rv;
169 rump_schedule();
170 rv = rump_newproc_switch();
171 rump_unschedule();
173 return rv;
176 struct lwp *
177 rump_pub_lwp_alloc(pid_t arg1, lwpid_t arg2)
179 struct lwp * rv;
181 rump_schedule();
182 rv = rump_lwp_alloc(arg1, arg2);
183 rump_unschedule();
185 return rv;
188 struct lwp *
189 rump_pub_lwp_alloc_and_switch(pid_t arg1, lwpid_t arg2)
191 struct lwp * rv;
193 rump_schedule();
194 rv = rump_lwp_alloc_and_switch(arg1, arg2);
195 rump_unschedule();
197 return rv;
200 struct lwp *
201 rump_pub_lwp_curlwp(void)
203 struct lwp * rv;
205 rump_schedule();
206 rv = rump_lwp_curlwp();
207 rump_unschedule();
209 return rv;
212 void
213 rump_pub_lwp_switch(struct lwp *arg1)
216 rump_schedule();
217 rump_lwp_switch(arg1);
218 rump_unschedule();
221 void
222 rump_pub_lwp_release(struct lwp *arg1)
225 rump_schedule();
226 rump_lwp_release(arg1);
227 rump_unschedule();
231 rump_pub_sysproxy_set(rump_sysproxy_t arg1, void *arg2)
233 int rv;
235 rump_schedule();
236 rv = rump_sysproxy_set(arg1, arg2);
237 rump_unschedule();
239 return rv;
243 rump_pub_sysproxy_socket_setup_client(int arg1)
245 int rv;
247 rump_schedule();
248 rv = rump_sysproxy_socket_setup_client(arg1);
249 rump_unschedule();
251 return rv;
255 rump_pub_sysproxy_socket_setup_server(int arg1)
257 int rv;
259 rump_schedule();
260 rv = rump_sysproxy_socket_setup_server(arg1);
261 rump_unschedule();
263 return rv;