Home | History | Annotate | Line # | Download | only in rump-sys
      1 /*	$NetBSD: vfs_if.h,v 1.3 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 #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_vp_vmobjlock(struct vnode *, int);
     37 typedef void (*rump_vp_vmobjlock_fn)(struct vnode *, int);
     38 void rump_freecn(struct componentname *, int);
     39 typedef void (*rump_freecn_fn)(struct componentname *, int);
     40 int rump_namei(uint32_t, uint32_t, const char *, struct vnode **, struct vnode **, struct componentname **);
     41 typedef int (*rump_namei_fn)(uint32_t, uint32_t, const char *, struct vnode **, struct vnode **, struct componentname **);
     42 struct componentname * rump_makecn(u_long, u_long, const char *, size_t, struct kauth_cred *, struct lwp *);
     43 typedef struct componentname * (*rump_makecn_fn)(u_long, u_long, const char *, size_t, struct kauth_cred *, struct lwp *);
     44 int rump_vfs_unmount(struct mount *, int);
     45 typedef int (*rump_vfs_unmount_fn)(struct mount *, int);
     46 int rump_vfs_root(struct mount *, struct vnode **, int);
     47 typedef int (*rump_vfs_root_fn)(struct mount *, struct vnode **, int);
     48 int rump_vfs_statvfs(struct mount *, struct statvfs *);
     49 typedef int (*rump_vfs_statvfs_fn)(struct mount *, struct statvfs *);
     50 int rump_vfs_sync(struct mount *, int, struct kauth_cred *);
     51 typedef int (*rump_vfs_sync_fn)(struct mount *, int, struct kauth_cred *);
     52 int rump_vfs_fhtovp(struct mount *, struct fid *, struct vnode **);
     53 typedef int (*rump_vfs_fhtovp_fn)(struct mount *, struct fid *, struct vnode **);
     54 int rump_vfs_vptofh(struct vnode *, struct fid *, size_t *);
     55 typedef int (*rump_vfs_vptofh_fn)(struct vnode *, struct fid *, size_t *);
     56 int rump_vfs_extattrctl(struct mount *, int, struct vnode *, int, const char *);
     57 typedef int (*rump_vfs_extattrctl_fn)(struct mount *, int, struct vnode *, int, const char *);
     58 void rump_vfs_syncwait(struct mount *);
     59 typedef void (*rump_vfs_syncwait_fn)(struct mount *);
     60 int rump_vfs_getmp(const char *, struct mount **);
     61 typedef int (*rump_vfs_getmp_fn)(const char *, struct mount **);
     62 void rump_vfs_mount_print(const char *, int);
     63 typedef void (*rump_vfs_mount_print_fn)(const char *, int);
     64 int rump_syspuffs_glueinit(int, int *);
     65 typedef int (*rump_syspuffs_glueinit_fn)(int, int *);
     66 void rump_vattr50_to_vattr(const struct vattr *, struct vattr *);
     67 typedef void (*rump_vattr50_to_vattr_fn)(const struct vattr *, struct vattr *);
     68 void rump_vattr_to_vattr50(const struct vattr *, struct vattr *);
     69 typedef void (*rump_vattr_to_vattr50_fn)(const struct vattr *, struct vattr *);
     70 
     71 #endif /* _RUMP_PRIF_VFS_H_ */
     72