mount.h (50477) | mount.h (51068) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)mount.h 8.21 (Berkeley) 5/20/95 |
34 * $FreeBSD: head/sys/sys/mount.h 50477 1999-08-28 01:08:13Z peter $ | 34 * $FreeBSD: head/sys/sys/mount.h 51068 1999-09-07 22:42:38Z alfred $ |
35 */ 36 37#ifndef _SYS_MOUNT_H_ 38#define _SYS_MOUNT_H_ 39 40#include <sys/ucred.h> 41#include <sys/queue.h> 42#include <sys/lock.h> --- 345 unchanged lines hidden (view full) --- 388void vfs_unbusy __P((struct mount *, struct proc *)); 389void vfs_unmountall __P((void)); 390int vfs_register __P((struct vfsconf *)); 391int vfs_unregister __P((struct vfsconf *)); 392extern CIRCLEQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */ 393extern struct simplelock mountlist_slock; 394extern struct nfs_public nfs_pub; 395 | 35 */ 36 37#ifndef _SYS_MOUNT_H_ 38#define _SYS_MOUNT_H_ 39 40#include <sys/ucred.h> 41#include <sys/queue.h> 42#include <sys/lock.h> --- 345 unchanged lines hidden (view full) --- 388void vfs_unbusy __P((struct mount *, struct proc *)); 389void vfs_unmountall __P((void)); 390int vfs_register __P((struct vfsconf *)); 391int vfs_unregister __P((struct vfsconf *)); 392extern CIRCLEQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */ 393extern struct simplelock mountlist_slock; 394extern struct nfs_public nfs_pub; 395 |
396/* 397 * Declarations for these vfs default operations are located in 398 * kern/vfs_default.c, they should be used instead of making "dummy" 399 * functions or casting entries in the VFS op table to "enopnotsupp()". 400 */ 401int vfs_stdmount __P((struct mount *mp, char *path, caddr_t data, 402 struct nameidata *ndp, struct proc *p)); 403int vfs_stdstart __P((struct mount *mp, int flags, struct proc *p)); 404int vfs_stdunmount __P((struct mount *mp, int mntflags, struct proc *p)); 405int vfs_stdroot __P((struct mount *mp, struct vnode **vpp)); 406int vfs_stdquotactl __P((struct mount *mp, int cmds, uid_t uid, 407 caddr_t arg, struct proc *p)); 408int vfs_stdstatfs __P((struct mount *mp, struct statfs *sbp, struct proc *p)); 409int vfs_stdsync __P((struct mount *mp, int waitfor, struct ucred *cred, 410 struct proc *p)); 411int vfs_stdvget __P((struct mount *mp, ino_t ino, struct vnode **vpp)); 412int vfs_stdfhtovp __P((struct mount *mp, struct fid *fhp, struct sockaddr *nam, 413 struct vnode **vpp, int *exflagsp, struct ucred **credanonp)); 414int vfs_stdvptofh __P((struct vnode *vp, struct fid *fhp)); 415int vfs_stdinit __P((struct vfsconf *)); 416int vfs_stduninit __P((struct vfsconf *)); 417 |
|
396#else /* !KERNEL */ 397 398#include <sys/cdefs.h> 399 400__BEGIN_DECLS 401int fstatfs __P((int, struct statfs *)); 402int getfh __P((const char *, fhandle_t *)); 403int getfsstat __P((struct statfs *, long, int)); --- 20 unchanged lines hidden --- | 418#else /* !KERNEL */ 419 420#include <sys/cdefs.h> 421 422__BEGIN_DECLS 423int fstatfs __P((int, struct statfs *)); 424int getfh __P((const char *, fhandle_t *)); 425int getfsstat __P((struct statfs *, long, int)); --- 20 unchanged lines hidden --- |