Deleted Added
full compact
mount.h (140699) mount.h (141634)
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 140697 2005-01-24 09:53:46Z jeff $
30 * $FreeBSD: head/sys/sys/mount.h 141634 2005-02-10 12:25:38Z 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

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

575extern char *mountrootfsname;
576
577/*
578 * exported vnode operations
579 */
580
581int dounmount(struct mount *, int, struct thread *);
582
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

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

575extern char *mountrootfsname;
576
577/*
578 * exported vnode operations
579 */
580
581int dounmount(struct mount *, int, struct thread *);
582
583void free_mntarg(struct mntarg *ma);
584int kernel_mount(struct mntarg *ma, int flags);
585int kernel_vmount(int flags, ...);
586struct mntarg *mount_arg(struct mntarg *ma, const char *name, const void *val, int len);
587struct mntarg *mount_argb(struct mntarg *ma, int flag, const char *name);
588struct mntarg *mount_argf(struct mntarg *ma, const char *name, const char *fmt, ...);
589struct mntarg *mount_argsu(struct mntarg *ma, const char *name, const void *val, int len);
590struct vfsconf *vfs_byname(const char *);
591struct vfsconf *vfs_byname_kld(const char *, struct thread *td, int *);

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

599int vfs_setpublicfs /* set publicly exported fs */
600 (struct mount *, struct netexport *, struct export_args *);
601int vfs_lock(struct mount *); /* lock a vfs */
602void vfs_msync(struct mount *, int);
603void vfs_unlock(struct mount *); /* unlock a vfs */
604int vfs_busy(struct mount *, int, struct mtx *, struct thread *);
605int vfs_export /* process mount export info */
606 (struct mount *, struct export_args *);
583int kernel_mount(struct mntarg *ma, int flags);
584int kernel_vmount(int flags, ...);
585struct mntarg *mount_arg(struct mntarg *ma, const char *name, const void *val, int len);
586struct mntarg *mount_argb(struct mntarg *ma, int flag, const char *name);
587struct mntarg *mount_argf(struct mntarg *ma, const char *name, const char *fmt, ...);
588struct mntarg *mount_argsu(struct mntarg *ma, const char *name, const void *val, int len);
589struct vfsconf *vfs_byname(const char *);
590struct vfsconf *vfs_byname_kld(const char *, struct thread *td, int *);

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

598int vfs_setpublicfs /* set publicly exported fs */
599 (struct mount *, struct netexport *, struct export_args *);
600int vfs_lock(struct mount *); /* lock a vfs */
601void vfs_msync(struct mount *, int);
602void vfs_unlock(struct mount *); /* unlock a vfs */
603int vfs_busy(struct mount *, int, struct mtx *, struct thread *);
604int vfs_export /* process mount export info */
605 (struct mount *, struct export_args *);
607struct netcred *vfs_export_lookup /* lookup host in fs export list */
608 (struct mount *, struct sockaddr *);
609int vfs_allocate_syncvnode(struct mount *);
610void vfs_getnewfsid(struct mount *);
611struct cdev *vfs_getrootfsid(struct mount *);
612struct mount *vfs_getvfs(fsid_t *); /* return vfs given fsid */
613int vfs_modevent(module_t, int, void *);
614void vfs_mountroot(void); /* mount our root filesystem */
615void vfs_mountedfrom(struct mount *, const char *from);
606int vfs_allocate_syncvnode(struct mount *);
607void vfs_getnewfsid(struct mount *);
608struct cdev *vfs_getrootfsid(struct mount *);
609struct mount *vfs_getvfs(fsid_t *); /* return vfs given fsid */
610int vfs_modevent(module_t, int, void *);
611void vfs_mountroot(void); /* mount our root filesystem */
612void vfs_mountedfrom(struct mount *, const char *from);
616void vfs_mount_destroy(struct mount *, struct thread *);
617int vfs_suser(struct mount *, struct thread *);
618void vfs_unbusy(struct mount *, struct thread *);
619void vfs_unmountall(void);
613int vfs_suser(struct mount *, struct thread *);
614void vfs_unbusy(struct mount *, struct thread *);
615void vfs_unmountall(void);
620int vfs_register(struct vfsconf *);
621int vfs_unregister(struct vfsconf *);
622extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */
623extern struct mtx mountlist_mtx;
624extern struct nfs_public nfs_pub;
625
626/*
627 * Declarations for these vfs default operations are located in
628 * kern/vfs_default.c, they should be used instead of making "dummy"
629 * functions or casting entries in the VFS op table to "enopnotsupp()".

--- 47 unchanged lines hidden ---
616extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */
617extern struct mtx mountlist_mtx;
618extern struct nfs_public nfs_pub;
619
620/*
621 * Declarations for these vfs default operations are located in
622 * kern/vfs_default.c, they should be used instead of making "dummy"
623 * functions or casting entries in the VFS op table to "enopnotsupp()".

--- 47 unchanged lines hidden ---