1 /*	$NetBSD: rumpvfs_if_wrappers.c,v 1.15 2016/01/26 23:25:41 pooka Exp $	*/
2 
3 /*
4  * Automatically generated.  DO NOT EDIT.
5  * from: NetBSD: rumpvfs.ifspec,v 1.11 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/vfs_if.h>
14 
15 #include <rump/rump.h>
16 #include <rump/rumpvfs_if_pub.h>
17 
18 void __dead rump_vfs_unavailable(void);
19 void __dead
rump_vfs_unavailable(void)20 rump_vfs_unavailable(void)
21 {
22 
23 	panic("vfs interface unavailable");
24 }
25 
26 void
rump_pub_getvninfo(struct vnode * arg1,enum rump_vtype * arg2,off_t * arg3,dev_t * arg4)27 rump_pub_getvninfo(struct vnode *arg1, enum rump_vtype *arg2, off_t *arg3, dev_t *arg4)
28 {
29 
30 	rump_schedule();
31 	rump_getvninfo(arg1, arg2, arg3, arg4);
32 	rump_unschedule();
33 }
34 
35 struct vfsops *
rump_pub_vfslist_iterate(struct vfsops * arg1)36 rump_pub_vfslist_iterate(struct vfsops *arg1)
37 {
38 	struct vfsops * rv;
39 
40 	rump_schedule();
41 	rv = rump_vfslist_iterate(arg1);
42 	rump_unschedule();
43 
44 	return rv;
45 }
46 
47 struct vfsops *
rump_pub_vfs_getopsbyname(const char * arg1)48 rump_pub_vfs_getopsbyname(const char *arg1)
49 {
50 	struct vfsops * rv;
51 
52 	rump_schedule();
53 	rv = rump_vfs_getopsbyname(arg1);
54 	rump_unschedule();
55 
56 	return rv;
57 }
58 
59 struct vattr *
rump_pub_vattr_init(void)60 rump_pub_vattr_init(void)
61 {
62 	struct vattr * rv;
63 
64 	rump_schedule();
65 	rv = rump_vattr_init();
66 	rump_unschedule();
67 
68 	return rv;
69 }
70 
71 void
rump_pub_vattr_settype(struct vattr * arg1,enum rump_vtype arg2)72 rump_pub_vattr_settype(struct vattr *arg1, enum rump_vtype arg2)
73 {
74 
75 	rump_schedule();
76 	rump_vattr_settype(arg1, arg2);
77 	rump_unschedule();
78 }
79 
80 void
rump_pub_vattr_setmode(struct vattr * arg1,mode_t arg2)81 rump_pub_vattr_setmode(struct vattr *arg1, mode_t arg2)
82 {
83 
84 	rump_schedule();
85 	rump_vattr_setmode(arg1, arg2);
86 	rump_unschedule();
87 }
88 
89 void
rump_pub_vattr_setrdev(struct vattr * arg1,dev_t arg2)90 rump_pub_vattr_setrdev(struct vattr *arg1, dev_t arg2)
91 {
92 
93 	rump_schedule();
94 	rump_vattr_setrdev(arg1, arg2);
95 	rump_unschedule();
96 }
97 
98 void
rump_pub_vattr_free(struct vattr * arg1)99 rump_pub_vattr_free(struct vattr *arg1)
100 {
101 
102 	rump_schedule();
103 	rump_vattr_free(arg1);
104 	rump_unschedule();
105 }
106 
107 void
rump_pub_vp_incref(struct vnode * arg1)108 rump_pub_vp_incref(struct vnode *arg1)
109 {
110 
111 	rump_schedule();
112 	rump_vp_incref(arg1);
113 	rump_unschedule();
114 }
115 
116 int
rump_pub_vp_getref(struct vnode * arg1)117 rump_pub_vp_getref(struct vnode *arg1)
118 {
119 	int rv;
120 
121 	rump_schedule();
122 	rv = rump_vp_getref(arg1);
123 	rump_unschedule();
124 
125 	return rv;
126 }
127 
128 void
rump_pub_vp_rele(struct vnode * arg1)129 rump_pub_vp_rele(struct vnode *arg1)
130 {
131 
132 	rump_schedule();
133 	rump_vp_rele(arg1);
134 	rump_unschedule();
135 }
136 
137 void
rump_pub_vp_interlock(struct vnode * arg1)138 rump_pub_vp_interlock(struct vnode *arg1)
139 {
140 
141 	rump_schedule();
142 	rump_vp_interlock(arg1);
143 	rump_unschedule();
144 }
145 
146 void
rump_pub_freecn(struct componentname * arg1,int arg2)147 rump_pub_freecn(struct componentname *arg1, int arg2)
148 {
149 
150 	rump_schedule();
151 	rump_freecn(arg1, arg2);
152 	rump_unschedule();
153 }
154 
155 int
rump_pub_namei(uint32_t arg1,uint32_t arg2,const char * arg3,struct vnode ** arg4,struct vnode ** arg5,struct componentname ** arg6)156 rump_pub_namei(uint32_t arg1, uint32_t arg2, const char *arg3, struct vnode **arg4, struct vnode **arg5, struct componentname **arg6)
157 {
158 	int rv;
159 
160 	rump_schedule();
161 	rv = rump_namei(arg1, arg2, arg3, arg4, arg5, arg6);
162 	rump_unschedule();
163 
164 	return rv;
165 }
166 
167 struct componentname *
rump_pub_makecn(u_long arg1,u_long arg2,const char * arg3,size_t arg4,struct kauth_cred * arg5,struct lwp * arg6)168 rump_pub_makecn(u_long arg1, u_long arg2, const char *arg3, size_t arg4, struct kauth_cred *arg5, struct lwp *arg6)
169 {
170 	struct componentname * rv;
171 
172 	rump_schedule();
173 	rv = rump_makecn(arg1, arg2, arg3, arg4, arg5, arg6);
174 	rump_unschedule();
175 
176 	return rv;
177 }
178 
179 int
rump_pub_vfs_unmount(struct mount * arg1,int arg2)180 rump_pub_vfs_unmount(struct mount *arg1, int arg2)
181 {
182 	int rv;
183 
184 	rump_schedule();
185 	rv = rump_vfs_unmount(arg1, arg2);
186 	rump_unschedule();
187 
188 	return rv;
189 }
190 
191 int
rump_pub_vfs_root(struct mount * arg1,struct vnode ** arg2,int arg3)192 rump_pub_vfs_root(struct mount *arg1, struct vnode **arg2, int arg3)
193 {
194 	int rv;
195 
196 	rump_schedule();
197 	rv = rump_vfs_root(arg1, arg2, arg3);
198 	rump_unschedule();
199 
200 	return rv;
201 }
202 
203 int
rump_pub_vfs_statvfs(struct mount * arg1,struct statvfs * arg2)204 rump_pub_vfs_statvfs(struct mount *arg1, struct statvfs *arg2)
205 {
206 	int rv;
207 
208 	rump_schedule();
209 	rv = rump_vfs_statvfs(arg1, arg2);
210 	rump_unschedule();
211 
212 	return rv;
213 }
214 
215 int
rump_pub_vfs_sync(struct mount * arg1,int arg2,struct kauth_cred * arg3)216 rump_pub_vfs_sync(struct mount *arg1, int arg2, struct kauth_cred *arg3)
217 {
218 	int rv;
219 
220 	rump_schedule();
221 	rv = rump_vfs_sync(arg1, arg2, arg3);
222 	rump_unschedule();
223 
224 	return rv;
225 }
226 
227 int
rump_pub_vfs_fhtovp(struct mount * arg1,struct fid * arg2,struct vnode ** arg3)228 rump_pub_vfs_fhtovp(struct mount *arg1, struct fid *arg2, struct vnode **arg3)
229 {
230 	int rv;
231 
232 	rump_schedule();
233 	rv = rump_vfs_fhtovp(arg1, arg2, arg3);
234 	rump_unschedule();
235 
236 	return rv;
237 }
238 
239 int
rump_pub_vfs_vptofh(struct vnode * arg1,struct fid * arg2,size_t * arg3)240 rump_pub_vfs_vptofh(struct vnode *arg1, struct fid *arg2, size_t *arg3)
241 {
242 	int rv;
243 
244 	rump_schedule();
245 	rv = rump_vfs_vptofh(arg1, arg2, arg3);
246 	rump_unschedule();
247 
248 	return rv;
249 }
250 
251 int
rump_pub_vfs_extattrctl(struct mount * arg1,int arg2,struct vnode * arg3,int arg4,const char * arg5)252 rump_pub_vfs_extattrctl(struct mount *arg1, int arg2, struct vnode *arg3, int arg4, const char *arg5)
253 {
254 	int rv;
255 
256 	rump_schedule();
257 	rv = rump_vfs_extattrctl(arg1, arg2, arg3, arg4, arg5);
258 	rump_unschedule();
259 
260 	return rv;
261 }
262 
263 void
rump_pub_vfs_syncwait(struct mount * arg1)264 rump_pub_vfs_syncwait(struct mount *arg1)
265 {
266 
267 	rump_schedule();
268 	rump_vfs_syncwait(arg1);
269 	rump_unschedule();
270 }
271 
272 int
rump_pub_vfs_getmp(const char * arg1,struct mount ** arg2)273 rump_pub_vfs_getmp(const char *arg1, struct mount **arg2)
274 {
275 	int rv;
276 
277 	rump_schedule();
278 	rv = rump_vfs_getmp(arg1, arg2);
279 	rump_unschedule();
280 
281 	return rv;
282 }
283 
284 void
rump_pub_vfs_mount_print(const char * arg1,int arg2)285 rump_pub_vfs_mount_print(const char *arg1, int arg2)
286 {
287 
288 	rump_schedule();
289 	rump_vfs_mount_print(arg1, arg2);
290 	rump_unschedule();
291 }
292 
293 int
rump_pub_syspuffs_glueinit(int arg1,int * arg2)294 rump_pub_syspuffs_glueinit(int arg1, int *arg2)
295 {
296 	int rv;
297 
298 	rump_schedule();
299 	rv = rump_syspuffs_glueinit(arg1, arg2);
300 	rump_unschedule();
301 
302 	return rv;
303 }
304 __weak_alias(rump_syspuffs_glueinit,rump_vfs_unavailable);
305 
306 #ifdef COMPAT_50
307 void
rump_pub_vattr50_to_vattr(const struct vattr * arg1,struct vattr * arg2)308 rump_pub_vattr50_to_vattr(const struct vattr *arg1, struct vattr *arg2)
309 {
310 
311 	rump_schedule();
312 	rump_vattr50_to_vattr(arg1, arg2);
313 	rump_unschedule();
314 }
315 #else
316 __strong_alias(rump_pub_vattr50_to_vattr,rump_vfs_unavailable);
317 #endif /* COMPAT_50 */
318 
319 #ifdef COMPAT_50
320 void
rump_pub_vattr_to_vattr50(const struct vattr * arg1,struct vattr * arg2)321 rump_pub_vattr_to_vattr50(const struct vattr *arg1, struct vattr *arg2)
322 {
323 
324 	rump_schedule();
325 	rump_vattr_to_vattr50(arg1, arg2);
326 	rump_unschedule();
327 }
328 #else
329 __strong_alias(rump_pub_vattr_to_vattr50,rump_vfs_unavailable);
330 #endif /* COMPAT_50 */
331