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