mount.h (179670) | mount.h (182542) |
---|---|
1/*- 2 * Copyright (c) 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)mount.h 8.21 (Berkeley) 5/20/95 | 1/*- 2 * Copyright (c) 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)mount.h 8.21 (Berkeley) 5/20/95 |
30 * $FreeBSD: head/sys/sys/mount.h 179670 2008-06-09 10:31:38Z kib $ | 30 * $FreeBSD: head/sys/sys/mount.h 182542 2008-08-31 14:26:08Z attilio $ |
31 */ 32 33#ifndef _SYS_MOUNT_H_ 34#define _SYS_MOUNT_H_ 35 36#include <sys/ucred.h> 37#include <sys/queue.h> 38#ifdef _KERNEL --- 636 unchanged lines hidden (view full) --- 675int vfs_getopt(struct vfsoptlist *, const char *, void **, int *); 676char *vfs_getopts(struct vfsoptlist *, const char *, int *error); 677int vfs_copyopt(struct vfsoptlist *, const char *, void *, int); 678int vfs_filteropt(struct vfsoptlist *, const char **legal); 679int vfs_scanopt(struct vfsoptlist *opts, const char *name, const char *fmt, ...); 680int vfs_setpublicfs /* set publicly exported fs */ 681 (struct mount *, struct netexport *, struct export_args *); 682void vfs_msync(struct mount *, int); | 31 */ 32 33#ifndef _SYS_MOUNT_H_ 34#define _SYS_MOUNT_H_ 35 36#include <sys/ucred.h> 37#include <sys/queue.h> 38#ifdef _KERNEL --- 636 unchanged lines hidden (view full) --- 675int vfs_getopt(struct vfsoptlist *, const char *, void **, int *); 676char *vfs_getopts(struct vfsoptlist *, const char *, int *error); 677int vfs_copyopt(struct vfsoptlist *, const char *, void *, int); 678int vfs_filteropt(struct vfsoptlist *, const char **legal); 679int vfs_scanopt(struct vfsoptlist *opts, const char *name, const char *fmt, ...); 680int vfs_setpublicfs /* set publicly exported fs */ 681 (struct mount *, struct netexport *, struct export_args *); 682void vfs_msync(struct mount *, int); |
683int vfs_busy(struct mount *, int, struct mtx *, struct thread *); | 683int vfs_busy(struct mount *, int, struct mtx *); |
684int vfs_export /* process mount export info */ 685 (struct mount *, struct export_args *); 686int vfs_allocate_syncvnode(struct mount *); 687void vfs_getnewfsid(struct mount *); 688struct cdev *vfs_getrootfsid(struct mount *); 689struct mount *vfs_getvfs(fsid_t *); /* return vfs given fsid */ 690int vfs_modevent(module_t, int, void *); 691void vfs_mount_error(struct mount *, const char *, ...); 692void vfs_mountroot(void); /* mount our root filesystem */ 693void vfs_mountedfrom(struct mount *, const char *from); 694void vfs_ref(struct mount *); 695void vfs_rel(struct mount *); 696struct mount *vfs_mount_alloc(struct vnode *, struct vfsconf *, const char *, | 684int vfs_export /* process mount export info */ 685 (struct mount *, struct export_args *); 686int vfs_allocate_syncvnode(struct mount *); 687void vfs_getnewfsid(struct mount *); 688struct cdev *vfs_getrootfsid(struct mount *); 689struct mount *vfs_getvfs(fsid_t *); /* return vfs given fsid */ 690int vfs_modevent(module_t, int, void *); 691void vfs_mount_error(struct mount *, const char *, ...); 692void vfs_mountroot(void); /* mount our root filesystem */ 693void vfs_mountedfrom(struct mount *, const char *from); 694void vfs_ref(struct mount *); 695void vfs_rel(struct mount *); 696struct mount *vfs_mount_alloc(struct vnode *, struct vfsconf *, const char *, |
697 struct thread *); | 697 struct ucred *); |
698int vfs_suser(struct mount *, struct thread *); | 698int vfs_suser(struct mount *, struct thread *); |
699void vfs_unbusy(struct mount *, struct thread *); | 699void vfs_unbusy(struct mount *); |
700void vfs_unmountall(void); 701extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */ 702extern struct mtx mountlist_mtx; 703extern struct nfs_public nfs_pub; 704 705/* 706 * Declarations for these vfs default operations are located in 707 * kern/vfs_default.c, they should be used instead of making "dummy" --- 42 unchanged lines hidden --- | 700void vfs_unmountall(void); 701extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */ 702extern struct mtx mountlist_mtx; 703extern struct nfs_public nfs_pub; 704 705/* 706 * Declarations for these vfs default operations are located in 707 * kern/vfs_default.c, they should be used instead of making "dummy" --- 42 unchanged lines hidden --- |