Deleted Added
full compact
mount.h (138461) mount.h (138467)
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 138461 2004-12-06 16:39:05Z phk $
30 * $FreeBSD: head/sys/sys/mount.h 138467 2004-12-06 18:18:35Z phk $
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

--- 527 unchanged lines hidden (view full) ---

566int kernel_mount(struct mntarg *ma, int flags);
567int kernel_vmount(int flags, ...);
568struct mntarg *mount_arg(struct mntarg *ma, const char *name, const void *val, int len);
569struct mntarg *mount_argf(struct mntarg *ma, const char *name, const char *fmt, ...);
570struct mntarg *mount_argsu(struct mntarg *ma, const char *name, const void *val, int len);
571struct vfsconf *vfs_byname(const char *);
572struct vfsconf *vfs_byname_kld(const char *, struct thread *td, int *);
573void vfs_event_signal(fsid_t *, u_int32_t, intptr_t);
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

--- 527 unchanged lines hidden (view full) ---

566int kernel_mount(struct mntarg *ma, int flags);
567int kernel_vmount(int flags, ...);
568struct mntarg *mount_arg(struct mntarg *ma, const char *name, const void *val, int len);
569struct mntarg *mount_argf(struct mntarg *ma, const char *name, const char *fmt, ...);
570struct mntarg *mount_argsu(struct mntarg *ma, const char *name, const void *val, int len);
571struct vfsconf *vfs_byname(const char *);
572struct vfsconf *vfs_byname_kld(const char *, struct thread *td, int *);
573void vfs_event_signal(fsid_t *, u_int32_t, intptr_t);
574int vfs_flagopt(struct vfsoptlist *opts, const char *name, u_int *w, u_int val);
574int vfs_getopt(struct vfsoptlist *, const char *, void **, int *);
575int vfs_getopt(struct vfsoptlist *, const char *, void **, int *);
576char *vfs_getopts(struct vfsoptlist *, const char *, int *error);
575int vfs_copyopt(struct vfsoptlist *, const char *, void *, int);
577int vfs_copyopt(struct vfsoptlist *, const char *, void *, int);
578int vfs_filteropt(struct vfsoptlist *, const char **legal);
579int vfs_scanopt(struct vfsoptlist *opts, const char *name, const char *fmt, ...);
576int vfs_setpublicfs /* set publicly exported fs */
577 (struct mount *, struct netexport *, struct export_args *);
578int vfs_lock(struct mount *); /* lock a vfs */
579void vfs_msync(struct mount *, int);
580void vfs_unlock(struct mount *); /* unlock a vfs */
581int vfs_busy(struct mount *, int, struct mtx *, struct thread *);
582int vfs_export /* process mount export info */
583 (struct mount *, struct export_args *);
584struct netcred *vfs_export_lookup /* lookup host in fs export list */
585 (struct mount *, struct sockaddr *);
586int vfs_allocate_syncvnode(struct mount *);
587void vfs_getnewfsid(struct mount *);
588struct cdev *vfs_getrootfsid(struct mount *);
589struct mount *vfs_getvfs(fsid_t *); /* return vfs given fsid */
590int vfs_modevent(module_t, int, void *);
591void vfs_mountroot(void); /* mount our root filesystem */
580int vfs_setpublicfs /* set publicly exported fs */
581 (struct mount *, struct netexport *, struct export_args *);
582int vfs_lock(struct mount *); /* lock a vfs */
583void vfs_msync(struct mount *, int);
584void vfs_unlock(struct mount *); /* unlock a vfs */
585int vfs_busy(struct mount *, int, struct mtx *, struct thread *);
586int vfs_export /* process mount export info */
587 (struct mount *, struct export_args *);
588struct netcred *vfs_export_lookup /* lookup host in fs export list */
589 (struct mount *, struct sockaddr *);
590int vfs_allocate_syncvnode(struct mount *);
591void vfs_getnewfsid(struct mount *);
592struct cdev *vfs_getrootfsid(struct mount *);
593struct mount *vfs_getvfs(fsid_t *); /* return vfs given fsid */
594int vfs_modevent(module_t, int, void *);
595void vfs_mountroot(void); /* mount our root filesystem */
596void vfs_mountedfrom(struct mount *, const char *from);
592void vfs_mount_destroy(struct mount *, struct thread *);
593int vfs_suser(struct mount *, struct thread *);
594void vfs_unbusy(struct mount *, struct thread *);
595void vfs_unmountall(void);
596int vfs_register(struct vfsconf *);
597int vfs_unregister(struct vfsconf *);
598extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */
599extern struct mtx mountlist_mtx;

--- 53 unchanged lines hidden ---
597void vfs_mount_destroy(struct mount *, struct thread *);
598int vfs_suser(struct mount *, struct thread *);
599void vfs_unbusy(struct mount *, struct thread *);
600void vfs_unmountall(void);
601int vfs_register(struct vfsconf *);
602int vfs_unregister(struct vfsconf *);
603extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */
604extern struct mtx mountlist_mtx;

--- 53 unchanged lines hidden ---