xref: /netbsd-src/sys/rump/include/rump-sys/vfs_if.h (revision d2a0ebb67a049a5c019aba780e67b6c65954d3db)
1*d2a0ebb6Sad /*	$NetBSD: vfs_if.h,v 1.3 2020/02/23 15:46:42 ad Exp $	*/
26bb51422Spooka 
36bb51422Spooka /*
46bb51422Spooka  * Automatically generated.  DO NOT EDIT.
500e5ca99Spooka  * from: NetBSD: rumpvfs.ifspec,v 1.11 2016/01/26 23:22:22 pooka Exp
600e5ca99Spooka  * by:   NetBSD: makerumpif.sh,v 1.10 2016/01/26 23:21:18 pooka Exp
76bb51422Spooka  */
86bb51422Spooka 
96bb51422Spooka #ifndef _RUMP_PRIF_VFS_H_
106bb51422Spooka #define _RUMP_PRIF_VFS_H_
116bb51422Spooka 
126bb51422Spooka void rump_getvninfo(struct vnode *, enum rump_vtype *, off_t *, dev_t *);
136bb51422Spooka typedef void (*rump_getvninfo_fn)(struct vnode *, enum rump_vtype *, off_t *, dev_t *);
146bb51422Spooka struct vfsops * rump_vfslist_iterate(struct vfsops *);
156bb51422Spooka typedef struct vfsops * (*rump_vfslist_iterate_fn)(struct vfsops *);
166bb51422Spooka struct vfsops * rump_vfs_getopsbyname(const char *);
176bb51422Spooka typedef struct vfsops * (*rump_vfs_getopsbyname_fn)(const char *);
186bb51422Spooka struct vattr * rump_vattr_init(void);
196bb51422Spooka typedef struct vattr * (*rump_vattr_init_fn)(void);
206bb51422Spooka void rump_vattr_settype(struct vattr *, enum rump_vtype);
216bb51422Spooka typedef void (*rump_vattr_settype_fn)(struct vattr *, enum rump_vtype);
226bb51422Spooka void rump_vattr_setmode(struct vattr *, mode_t);
236bb51422Spooka typedef void (*rump_vattr_setmode_fn)(struct vattr *, mode_t);
246bb51422Spooka void rump_vattr_setrdev(struct vattr *, dev_t);
256bb51422Spooka typedef void (*rump_vattr_setrdev_fn)(struct vattr *, dev_t);
266bb51422Spooka void rump_vattr_free(struct vattr *);
276bb51422Spooka typedef void (*rump_vattr_free_fn)(struct vattr *);
286bb51422Spooka void rump_vp_incref(struct vnode *);
296bb51422Spooka typedef void (*rump_vp_incref_fn)(struct vnode *);
306bb51422Spooka int rump_vp_getref(struct vnode *);
316bb51422Spooka typedef int (*rump_vp_getref_fn)(struct vnode *);
326bb51422Spooka void rump_vp_rele(struct vnode *);
336bb51422Spooka typedef void (*rump_vp_rele_fn)(struct vnode *);
346bb51422Spooka void rump_vp_interlock(struct vnode *);
356bb51422Spooka typedef void (*rump_vp_interlock_fn)(struct vnode *);
36*d2a0ebb6Sad void rump_vp_vmobjlock(struct vnode *, int);
37*d2a0ebb6Sad typedef void (*rump_vp_vmobjlock_fn)(struct vnode *, int);
386bb51422Spooka void rump_freecn(struct componentname *, int);
396bb51422Spooka typedef void (*rump_freecn_fn)(struct componentname *, int);
406bb51422Spooka int rump_namei(uint32_t, uint32_t, const char *, struct vnode **, struct vnode **, struct componentname **);
416bb51422Spooka typedef int (*rump_namei_fn)(uint32_t, uint32_t, const char *, struct vnode **, struct vnode **, struct componentname **);
426bb51422Spooka struct componentname * rump_makecn(u_long, u_long, const char *, size_t, struct kauth_cred *, struct lwp *);
436bb51422Spooka typedef struct componentname * (*rump_makecn_fn)(u_long, u_long, const char *, size_t, struct kauth_cred *, struct lwp *);
446bb51422Spooka int rump_vfs_unmount(struct mount *, int);
456bb51422Spooka typedef int (*rump_vfs_unmount_fn)(struct mount *, int);
466bb51422Spooka int rump_vfs_root(struct mount *, struct vnode **, int);
476bb51422Spooka typedef int (*rump_vfs_root_fn)(struct mount *, struct vnode **, int);
486bb51422Spooka int rump_vfs_statvfs(struct mount *, struct statvfs *);
496bb51422Spooka typedef int (*rump_vfs_statvfs_fn)(struct mount *, struct statvfs *);
506bb51422Spooka int rump_vfs_sync(struct mount *, int, struct kauth_cred *);
516bb51422Spooka typedef int (*rump_vfs_sync_fn)(struct mount *, int, struct kauth_cred *);
526bb51422Spooka int rump_vfs_fhtovp(struct mount *, struct fid *, struct vnode **);
536bb51422Spooka typedef int (*rump_vfs_fhtovp_fn)(struct mount *, struct fid *, struct vnode **);
546bb51422Spooka int rump_vfs_vptofh(struct vnode *, struct fid *, size_t *);
556bb51422Spooka typedef int (*rump_vfs_vptofh_fn)(struct vnode *, struct fid *, size_t *);
566bb51422Spooka int rump_vfs_extattrctl(struct mount *, int, struct vnode *, int, const char *);
576bb51422Spooka typedef int (*rump_vfs_extattrctl_fn)(struct mount *, int, struct vnode *, int, const char *);
586bb51422Spooka void rump_vfs_syncwait(struct mount *);
596bb51422Spooka typedef void (*rump_vfs_syncwait_fn)(struct mount *);
606bb51422Spooka int rump_vfs_getmp(const char *, struct mount **);
616bb51422Spooka typedef int (*rump_vfs_getmp_fn)(const char *, struct mount **);
626bb51422Spooka void rump_vfs_mount_print(const char *, int);
636bb51422Spooka typedef void (*rump_vfs_mount_print_fn)(const char *, int);
646bb51422Spooka int rump_syspuffs_glueinit(int, int *);
656bb51422Spooka typedef int (*rump_syspuffs_glueinit_fn)(int, int *);
666bb51422Spooka void rump_vattr50_to_vattr(const struct vattr *, struct vattr *);
676bb51422Spooka typedef void (*rump_vattr50_to_vattr_fn)(const struct vattr *, struct vattr *);
686bb51422Spooka void rump_vattr_to_vattr50(const struct vattr *, struct vattr *);
696bb51422Spooka typedef void (*rump_vattr_to_vattr50_fn)(const struct vattr *, struct vattr *);
706bb51422Spooka 
716bb51422Spooka #endif /* _RUMP_PRIF_VFS_H_ */
72