1 1.2 pooka /* $NetBSD: vfs_if.h,v 1.3 2020/02/23 15:46:42 ad Exp $ */ 2 1.1 pooka 3 1.1 pooka /* 4 1.1 pooka * Automatically generated. DO NOT EDIT. 5 1.2 pooka * from: NetBSD: rumpvfs.ifspec,v 1.11 2016/01/26 23:22:22 pooka Exp 6 1.2 pooka * by: NetBSD: makerumpif.sh,v 1.10 2016/01/26 23:21:18 pooka Exp 7 1.1 pooka */ 8 1.1 pooka 9 1.1 pooka #ifndef _RUMP_PRIF_VFS_H_ 10 1.1 pooka #define _RUMP_PRIF_VFS_H_ 11 1.1 pooka 12 1.1 pooka void rump_getvninfo(struct vnode *, enum rump_vtype *, off_t *, dev_t *); 13 1.1 pooka typedef void (*rump_getvninfo_fn)(struct vnode *, enum rump_vtype *, off_t *, dev_t *); 14 1.1 pooka struct vfsops * rump_vfslist_iterate(struct vfsops *); 15 1.1 pooka typedef struct vfsops * (*rump_vfslist_iterate_fn)(struct vfsops *); 16 1.1 pooka struct vfsops * rump_vfs_getopsbyname(const char *); 17 1.1 pooka typedef struct vfsops * (*rump_vfs_getopsbyname_fn)(const char *); 18 1.1 pooka struct vattr * rump_vattr_init(void); 19 1.1 pooka typedef struct vattr * (*rump_vattr_init_fn)(void); 20 1.1 pooka void rump_vattr_settype(struct vattr *, enum rump_vtype); 21 1.1 pooka typedef void (*rump_vattr_settype_fn)(struct vattr *, enum rump_vtype); 22 1.1 pooka void rump_vattr_setmode(struct vattr *, mode_t); 23 1.1 pooka typedef void (*rump_vattr_setmode_fn)(struct vattr *, mode_t); 24 1.1 pooka void rump_vattr_setrdev(struct vattr *, dev_t); 25 1.1 pooka typedef void (*rump_vattr_setrdev_fn)(struct vattr *, dev_t); 26 1.1 pooka void rump_vattr_free(struct vattr *); 27 1.1 pooka typedef void (*rump_vattr_free_fn)(struct vattr *); 28 1.1 pooka void rump_vp_incref(struct vnode *); 29 1.1 pooka typedef void (*rump_vp_incref_fn)(struct vnode *); 30 1.1 pooka int rump_vp_getref(struct vnode *); 31 1.1 pooka typedef int (*rump_vp_getref_fn)(struct vnode *); 32 1.1 pooka void rump_vp_rele(struct vnode *); 33 1.1 pooka typedef void (*rump_vp_rele_fn)(struct vnode *); 34 1.1 pooka void rump_vp_interlock(struct vnode *); 35 1.1 pooka typedef void (*rump_vp_interlock_fn)(struct vnode *); 36 1.3 ad void rump_vp_vmobjlock(struct vnode *, int); 37 1.3 ad typedef void (*rump_vp_vmobjlock_fn)(struct vnode *, int); 38 1.1 pooka void rump_freecn(struct componentname *, int); 39 1.1 pooka typedef void (*rump_freecn_fn)(struct componentname *, int); 40 1.1 pooka int rump_namei(uint32_t, uint32_t, const char *, struct vnode **, struct vnode **, struct componentname **); 41 1.1 pooka typedef int (*rump_namei_fn)(uint32_t, uint32_t, const char *, struct vnode **, struct vnode **, struct componentname **); 42 1.1 pooka struct componentname * rump_makecn(u_long, u_long, const char *, size_t, struct kauth_cred *, struct lwp *); 43 1.1 pooka typedef struct componentname * (*rump_makecn_fn)(u_long, u_long, const char *, size_t, struct kauth_cred *, struct lwp *); 44 1.1 pooka int rump_vfs_unmount(struct mount *, int); 45 1.1 pooka typedef int (*rump_vfs_unmount_fn)(struct mount *, int); 46 1.1 pooka int rump_vfs_root(struct mount *, struct vnode **, int); 47 1.1 pooka typedef int (*rump_vfs_root_fn)(struct mount *, struct vnode **, int); 48 1.1 pooka int rump_vfs_statvfs(struct mount *, struct statvfs *); 49 1.1 pooka typedef int (*rump_vfs_statvfs_fn)(struct mount *, struct statvfs *); 50 1.1 pooka int rump_vfs_sync(struct mount *, int, struct kauth_cred *); 51 1.1 pooka typedef int (*rump_vfs_sync_fn)(struct mount *, int, struct kauth_cred *); 52 1.1 pooka int rump_vfs_fhtovp(struct mount *, struct fid *, struct vnode **); 53 1.1 pooka typedef int (*rump_vfs_fhtovp_fn)(struct mount *, struct fid *, struct vnode **); 54 1.1 pooka int rump_vfs_vptofh(struct vnode *, struct fid *, size_t *); 55 1.1 pooka typedef int (*rump_vfs_vptofh_fn)(struct vnode *, struct fid *, size_t *); 56 1.1 pooka int rump_vfs_extattrctl(struct mount *, int, struct vnode *, int, const char *); 57 1.1 pooka typedef int (*rump_vfs_extattrctl_fn)(struct mount *, int, struct vnode *, int, const char *); 58 1.1 pooka void rump_vfs_syncwait(struct mount *); 59 1.1 pooka typedef void (*rump_vfs_syncwait_fn)(struct mount *); 60 1.1 pooka int rump_vfs_getmp(const char *, struct mount **); 61 1.1 pooka typedef int (*rump_vfs_getmp_fn)(const char *, struct mount **); 62 1.1 pooka void rump_vfs_mount_print(const char *, int); 63 1.1 pooka typedef void (*rump_vfs_mount_print_fn)(const char *, int); 64 1.1 pooka int rump_syspuffs_glueinit(int, int *); 65 1.1 pooka typedef int (*rump_syspuffs_glueinit_fn)(int, int *); 66 1.1 pooka void rump_vattr50_to_vattr(const struct vattr *, struct vattr *); 67 1.1 pooka typedef void (*rump_vattr50_to_vattr_fn)(const struct vattr *, struct vattr *); 68 1.1 pooka void rump_vattr_to_vattr50(const struct vattr *, struct vattr *); 69 1.1 pooka typedef void (*rump_vattr_to_vattr50_fn)(const struct vattr *, struct vattr *); 70 1.1 pooka 71 1.1 pooka #endif /* _RUMP_PRIF_VFS_H_ */ 72