Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mount.h
Show First 20 Lines • Show All 798 Lines • ▼ Show 20 Lines | typedef int vfs_extattrctl_t(struct mount *mp, int cmd, | ||||
struct vnode *filename_vp, int attrnamespace, | struct vnode *filename_vp, int attrnamespace, | ||||
const char *attrname); | const char *attrname); | ||||
typedef int vfs_mount_t(struct mount *mp); | typedef int vfs_mount_t(struct mount *mp); | ||||
typedef int vfs_sysctl_t(struct mount *mp, fsctlop_t op, | typedef int vfs_sysctl_t(struct mount *mp, fsctlop_t op, | ||||
struct sysctl_req *req); | struct sysctl_req *req); | ||||
typedef void vfs_susp_clean_t(struct mount *mp); | typedef void vfs_susp_clean_t(struct mount *mp); | ||||
typedef void vfs_notify_lowervp_t(struct mount *mp, struct vnode *lowervp); | typedef void vfs_notify_lowervp_t(struct mount *mp, struct vnode *lowervp); | ||||
typedef void vfs_purge_t(struct mount *mp); | typedef void vfs_purge_t(struct mount *mp); | ||||
struct sbuf; | |||||
typedef int vfs_report_lockf_t(struct mount *mp, struct sbuf *sb); | |||||
struct vfsops { | struct vfsops { | ||||
vfs_mount_t *vfs_mount; | vfs_mount_t *vfs_mount; | ||||
vfs_cmount_t *vfs_cmount; | vfs_cmount_t *vfs_cmount; | ||||
vfs_unmount_t *vfs_unmount; | vfs_unmount_t *vfs_unmount; | ||||
vfs_root_t *vfs_root; | vfs_root_t *vfs_root; | ||||
vfs_root_t *vfs_cachedroot; | vfs_root_t *vfs_cachedroot; | ||||
vfs_quotactl_t *vfs_quotactl; | vfs_quotactl_t *vfs_quotactl; | ||||
vfs_statfs_t *vfs_statfs; | vfs_statfs_t *vfs_statfs; | ||||
vfs_sync_t *vfs_sync; | vfs_sync_t *vfs_sync; | ||||
vfs_vget_t *vfs_vget; | vfs_vget_t *vfs_vget; | ||||
vfs_fhtovp_t *vfs_fhtovp; | vfs_fhtovp_t *vfs_fhtovp; | ||||
vfs_checkexp_t *vfs_checkexp; | vfs_checkexp_t *vfs_checkexp; | ||||
vfs_init_t *vfs_init; | vfs_init_t *vfs_init; | ||||
vfs_uninit_t *vfs_uninit; | vfs_uninit_t *vfs_uninit; | ||||
vfs_extattrctl_t *vfs_extattrctl; | vfs_extattrctl_t *vfs_extattrctl; | ||||
vfs_sysctl_t *vfs_sysctl; | vfs_sysctl_t *vfs_sysctl; | ||||
vfs_susp_clean_t *vfs_susp_clean; | vfs_susp_clean_t *vfs_susp_clean; | ||||
vfs_notify_lowervp_t *vfs_reclaim_lowervp; | vfs_notify_lowervp_t *vfs_reclaim_lowervp; | ||||
vfs_notify_lowervp_t *vfs_unlink_lowervp; | vfs_notify_lowervp_t *vfs_unlink_lowervp; | ||||
vfs_purge_t *vfs_purge; | vfs_purge_t *vfs_purge; | ||||
vfs_report_lockf_t *vfs_report_lockf; | |||||
vfs_mount_t *vfs_spare[6]; /* spares for ABI compat */ | vfs_mount_t *vfs_spare[6]; /* spares for ABI compat */ | ||||
}; | }; | ||||
vfs_statfs_t __vfs_statfs; | vfs_statfs_t __vfs_statfs; | ||||
#define VFS_MOUNT(MP) ({ \ | #define VFS_MOUNT(MP) ({ \ | ||||
int _rc; \ | int _rc; \ | ||||
\ | \ | ||||
▲ Show 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | |||||
struct mount *vfs_register_upper_from_vp(struct vnode *, | struct mount *vfs_register_upper_from_vp(struct vnode *, | ||||
struct mount *ump, struct mount_upper_node *); | struct mount *ump, struct mount_upper_node *); | ||||
void vfs_register_for_notification(struct mount *, struct mount *, | void vfs_register_for_notification(struct mount *, struct mount *, | ||||
struct mount_upper_node *); | struct mount_upper_node *); | ||||
void vfs_unregister_for_notification(struct mount *, | void vfs_unregister_for_notification(struct mount *, | ||||
struct mount_upper_node *); | struct mount_upper_node *); | ||||
void vfs_unregister_upper(struct mount *, struct mount_upper_node *); | void vfs_unregister_upper(struct mount *, struct mount_upper_node *); | ||||
int vfs_remount_ro(struct mount *mp); | int vfs_remount_ro(struct mount *mp); | ||||
int vfs_report_lockf(struct mount *mp, struct sbuf *sb); | |||||
extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */ | extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */ | ||||
extern struct mtx_padalign mountlist_mtx; | extern struct mtx_padalign mountlist_mtx; | ||||
extern struct nfs_public nfs_pub; | extern struct nfs_public nfs_pub; | ||||
extern struct sx vfsconf_sx; | extern struct sx vfsconf_sx; | ||||
#define vfsconf_lock() sx_xlock(&vfsconf_sx) | #define vfsconf_lock() sx_xlock(&vfsconf_sx) | ||||
#define vfsconf_unlock() sx_xunlock(&vfsconf_sx) | #define vfsconf_unlock() sx_xunlock(&vfsconf_sx) | ||||
#define vfsconf_slock() sx_slock(&vfsconf_sx) | #define vfsconf_slock() sx_slock(&vfsconf_sx) | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |