1 /*        $NetBSD: rumpvfs_if_wrappers.c,v 1.16 2020/02/23 15:46:42 ad 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_vp_vmobjlock(struct vnode * arg1,int arg2)147 rump_pub_vp_vmobjlock(struct vnode *arg1, int arg2)
148 {
149 
150           rump_schedule();
151           rump_vp_vmobjlock(arg1, arg2);
152           rump_unschedule();
153 }
154 
155 void
rump_pub_freecn(struct componentname * arg1,int arg2)156 rump_pub_freecn(struct componentname *arg1, int arg2)
157 {
158 
159           rump_schedule();
160           rump_freecn(arg1, arg2);
161           rump_unschedule();
162 }
163 
164 int
rump_pub_namei(uint32_t arg1,uint32_t arg2,const char * arg3,struct vnode ** arg4,struct vnode ** arg5,struct componentname ** arg6)165 rump_pub_namei(uint32_t arg1, uint32_t arg2, const char *arg3, struct vnode **arg4, struct vnode **arg5, struct componentname **arg6)
166 {
167           int rv;
168 
169           rump_schedule();
170           rv = rump_namei(arg1, arg2, arg3, arg4, arg5, arg6);
171           rump_unschedule();
172 
173           return rv;
174 }
175 
176 struct componentname *
rump_pub_makecn(u_long arg1,u_long arg2,const char * arg3,size_t arg4,struct kauth_cred * arg5,struct lwp * arg6)177 rump_pub_makecn(u_long arg1, u_long arg2, const char *arg3, size_t arg4, struct kauth_cred *arg5, struct lwp *arg6)
178 {
179           struct componentname * rv;
180 
181           rump_schedule();
182           rv = rump_makecn(arg1, arg2, arg3, arg4, arg5, arg6);
183           rump_unschedule();
184 
185           return rv;
186 }
187 
188 int
rump_pub_vfs_unmount(struct mount * arg1,int arg2)189 rump_pub_vfs_unmount(struct mount *arg1, int arg2)
190 {
191           int rv;
192 
193           rump_schedule();
194           rv = rump_vfs_unmount(arg1, arg2);
195           rump_unschedule();
196 
197           return rv;
198 }
199 
200 int
rump_pub_vfs_root(struct mount * arg1,struct vnode ** arg2,int arg3)201 rump_pub_vfs_root(struct mount *arg1, struct vnode **arg2, int arg3)
202 {
203           int rv;
204 
205           rump_schedule();
206           rv = rump_vfs_root(arg1, arg2, arg3);
207           rump_unschedule();
208 
209           return rv;
210 }
211 
212 int
rump_pub_vfs_statvfs(struct mount * arg1,struct statvfs * arg2)213 rump_pub_vfs_statvfs(struct mount *arg1, struct statvfs *arg2)
214 {
215           int rv;
216 
217           rump_schedule();
218           rv = rump_vfs_statvfs(arg1, arg2);
219           rump_unschedule();
220 
221           return rv;
222 }
223 
224 int
rump_pub_vfs_sync(struct mount * arg1,int arg2,struct kauth_cred * arg3)225 rump_pub_vfs_sync(struct mount *arg1, int arg2, struct kauth_cred *arg3)
226 {
227           int rv;
228 
229           rump_schedule();
230           rv = rump_vfs_sync(arg1, arg2, arg3);
231           rump_unschedule();
232 
233           return rv;
234 }
235 
236 int
rump_pub_vfs_fhtovp(struct mount * arg1,struct fid * arg2,struct vnode ** arg3)237 rump_pub_vfs_fhtovp(struct mount *arg1, struct fid *arg2, struct vnode **arg3)
238 {
239           int rv;
240 
241           rump_schedule();
242           rv = rump_vfs_fhtovp(arg1, arg2, arg3);
243           rump_unschedule();
244 
245           return rv;
246 }
247 
248 int
rump_pub_vfs_vptofh(struct vnode * arg1,struct fid * arg2,size_t * arg3)249 rump_pub_vfs_vptofh(struct vnode *arg1, struct fid *arg2, size_t *arg3)
250 {
251           int rv;
252 
253           rump_schedule();
254           rv = rump_vfs_vptofh(arg1, arg2, arg3);
255           rump_unschedule();
256 
257           return rv;
258 }
259 
260 int
rump_pub_vfs_extattrctl(struct mount * arg1,int arg2,struct vnode * arg3,int arg4,const char * arg5)261 rump_pub_vfs_extattrctl(struct mount *arg1, int arg2, struct vnode *arg3, int arg4, const char *arg5)
262 {
263           int rv;
264 
265           rump_schedule();
266           rv = rump_vfs_extattrctl(arg1, arg2, arg3, arg4, arg5);
267           rump_unschedule();
268 
269           return rv;
270 }
271 
272 void
rump_pub_vfs_syncwait(struct mount * arg1)273 rump_pub_vfs_syncwait(struct mount *arg1)
274 {
275 
276           rump_schedule();
277           rump_vfs_syncwait(arg1);
278           rump_unschedule();
279 }
280 
281 int
rump_pub_vfs_getmp(const char * arg1,struct mount ** arg2)282 rump_pub_vfs_getmp(const char *arg1, struct mount **arg2)
283 {
284           int rv;
285 
286           rump_schedule();
287           rv = rump_vfs_getmp(arg1, arg2);
288           rump_unschedule();
289 
290           return rv;
291 }
292 
293 void
rump_pub_vfs_mount_print(const char * arg1,int arg2)294 rump_pub_vfs_mount_print(const char *arg1, int arg2)
295 {
296 
297           rump_schedule();
298           rump_vfs_mount_print(arg1, arg2);
299           rump_unschedule();
300 }
301 
302 int
rump_pub_syspuffs_glueinit(int arg1,int * arg2)303 rump_pub_syspuffs_glueinit(int arg1, int *arg2)
304 {
305           int rv;
306 
307           rump_schedule();
308           rv = rump_syspuffs_glueinit(arg1, arg2);
309           rump_unschedule();
310 
311           return rv;
312 }
313 __weak_alias(rump_syspuffs_glueinit,rump_vfs_unavailable);
314 
315 #ifdef COMPAT_50
316 void
rump_pub_vattr50_to_vattr(const struct vattr * arg1,struct vattr * arg2)317 rump_pub_vattr50_to_vattr(const struct vattr *arg1, struct vattr *arg2)
318 {
319 
320           rump_schedule();
321           rump_vattr50_to_vattr(arg1, arg2);
322           rump_unschedule();
323 }
324 #else
325 __strong_alias(rump_pub_vattr50_to_vattr,rump_vfs_unavailable);
326 #endif /* COMPAT_50 */
327 
328 #ifdef COMPAT_50
329 void
rump_pub_vattr_to_vattr50(const struct vattr * arg1,struct vattr * arg2)330 rump_pub_vattr_to_vattr50(const struct vattr *arg1, struct vattr *arg2)
331 {
332 
333           rump_schedule();
334           rump_vattr_to_vattr50(arg1, arg2);
335           rump_unschedule();
336 }
337 #else
338 __strong_alias(rump_pub_vattr_to_vattr50,rump_vfs_unavailable);
339 #endif /* COMPAT_50 */
340