Lines Matching defs:mount

29  *	@(#)mount.h	8.21 (Berkeley) 5/20/95
46 * NOTE: When changing statfs structure, mount structure, MNT_* flags or
47 * MNTK_* flags also update DDB show mount command in vfs_subr.c.
73 uint64_t f_flags; /* copy of mount exported flags */
81 uint64_t f_syncwrites; /* count of sync writes since mount */
82 uint64_t f_asyncwrites; /* count of async writes since mount */
83 uint64_t f_syncreads; /* count of sync reads since mount */
84 uint64_t f_asyncreads; /* count of async reads since mount */
113 int f_flags; /* copy of mount exported flags */
114 long f_syncwrites; /* count of sync writes since mount */
115 long f_asyncwrites; /* count of async writes since mount */
118 long f_syncreads; /* count of sync reads since mount */
119 long f_asyncreads; /* count of async reads since mount */
157 struct mount {
158 struct mtx mnt_mtx; /* mount structure interlock */
159 int mnt_gen; /* struct mount generation */
161 TAILQ_ENTRY(mount) mnt_list; /* (m) mount list */
174 struct vfsoptlist *mnt_opt; /* current mount options */
192 TAILQ_ENTRY(mount) mnt_upper_link; /* (m) we in the all uppers */
193 TAILQ_HEAD(, mount) mnt_uppers; /* (m) upper mounts over us*/
199 struct vnode *__mnt_vnode_next_all(struct vnode **mvp, struct mount *mp);
200 struct vnode *__mnt_vnode_first_all(struct vnode **mvp, struct mount *mp);
201 void __mnt_vnode_markerfree_all(struct vnode **mvp, struct mount *mp);
218 struct vnode *__mnt_vnode_next_active(struct vnode **mvp, struct mount *mp);
219 struct vnode *__mnt_vnode_first_active(struct vnode **mvp, struct mount *mp);
220 void __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *);
266 * NFS export related mount flags.
289 * but the 'mount' program may need changing to handle this.
316 * mount(2) and MNT_BYFSID is only used for unmount(2) it's harmless.
318 #define MNT_UPDATE 0x0000000000010000ULL /* not real mount, just update */
329 * MNTK_UNMOUNT locks the mount entry so that name lookup cannot proceed
330 * past the mount point. This keeps the subtree stable during mounts
340 * the mount.
370 MNT_SHARED_WRITES(struct mount *mp)
377 MNT_EXTENDED_SHARED(struct mount *mp)
396 * mount specific header files.
416 fsid_t fh_fsid; /* Filesystem id of mount point */
436 * Export arguments for local filesystem mount calls.
459 struct mount *np_mount; /* Mountpoint of exported fs */
466 * mount time to identify the requested filesystem.
477 struct vfsoptdecl *vfc_opts; /* mount options */
606 typedef int vfs_unmount_t(struct mount *mp, int mntflags);
607 typedef int vfs_root_t(struct mount *mp, int flags, struct vnode **vpp);
608 typedef int vfs_quotactl_t(struct mount *mp, int cmds, uid_t uid, void *arg);
609 typedef int vfs_statfs_t(struct mount *mp, struct statfs *sbp);
610 typedef int vfs_sync_t(struct mount *mp, int waitfor);
611 typedef int vfs_vget_t(struct mount *mp, ino_t ino, int flags,
613 typedef int vfs_fhtovp_t(struct mount *mp, struct fid *fhp,
615 typedef int vfs_checkexp_t(struct mount *mp, struct sockaddr *nam,
620 typedef int vfs_extattrctl_t(struct mount *mp, int cmd,
623 typedef int vfs_mount_t(struct mount *mp);
624 typedef int vfs_sysctl_t(struct mount *mp, fsctlop_t op,
626 typedef void vfs_susp_clean_t(struct mount *mp);
627 typedef void vfs_notify_lowervp_t(struct mount *mp, struct vnode *lowervp);
628 typedef void vfs_purge_t(struct mount *mp);
655 struct mount *mp__; \
833 int dounmount(struct mount *, int, struct thread *);
844 void vfs_mount_destroy(struct mount *);
867 (struct mount *, struct netexport *, struct export_args *);
868 void vfs_msync(struct mount *, int);
869 int vfs_busy(struct mount *, int);
870 int vfs_export /* process mount export info */
871 (struct mount *, struct export_args *);
872 void vfs_allocate_syncvnode(struct mount *);
873 void vfs_deallocate_syncvnode(struct mount *);
876 void vfs_getnewfsid(struct mount *);
877 struct cdev *vfs_getrootfsid(struct mount *);
878 struct mount *vfs_getvfs(fsid_t *); /* return vfs given fsid */
879 struct mount *vfs_busyfs(fsid_t *);
881 void vfs_mount_error(struct mount *, const char *, ...);
882 void vfs_mountroot(void); /* mount our root filesystem */
883 void vfs_mountedfrom(struct mount *, const char *from);
887 void vfs_ref(struct mount *);
888 void vfs_rel(struct mount *);
889 struct mount *vfs_mount_alloc(struct vnode *, struct vfsconf *, const char *,
891 int vfs_suser(struct mount *, struct thread *);
892 void vfs_unbusy(struct mount *);
894 extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */
937 int mount(const char *, const char *, int, void *);