mount.h (54051) | mount.h (54803) |
---|---|
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 54051 1999-12-03 02:23:34Z jkh $ | 34 * $FreeBSD: head/sys/sys/mount.h 54803 1999-12-19 06:08:07Z rwatson $ |
35 */ 36 37#ifndef _SYS_MOUNT_H_ 38#define _SYS_MOUNT_H_ 39 40#include <sys/ucred.h> 41 42#ifndef KERNEL --- 283 unchanged lines hidden (view full) --- 326 struct vnode **vpp)); 327 int (*vfs_fhtovp) __P((struct mount *mp, struct fid *fhp, 328 struct vnode **vpp)); 329 int (*vfs_checkexp) __P((struct mount *mp, struct sockaddr *nam, 330 int *extflagsp, struct ucred **credanonp)); 331 int (*vfs_vptofh) __P((struct vnode *vp, struct fid *fhp)); 332 int (*vfs_init) __P((struct vfsconf *)); 333 int (*vfs_uninit) __P((struct vfsconf *)); | 35 */ 36 37#ifndef _SYS_MOUNT_H_ 38#define _SYS_MOUNT_H_ 39 40#include <sys/ucred.h> 41 42#ifndef KERNEL --- 283 unchanged lines hidden (view full) --- 326 struct vnode **vpp)); 327 int (*vfs_fhtovp) __P((struct mount *mp, struct fid *fhp, 328 struct vnode **vpp)); 329 int (*vfs_checkexp) __P((struct mount *mp, struct sockaddr *nam, 330 int *extflagsp, struct ucred **credanonp)); 331 int (*vfs_vptofh) __P((struct vnode *vp, struct fid *fhp)); 332 int (*vfs_init) __P((struct vfsconf *)); 333 int (*vfs_uninit) __P((struct vfsconf *)); |
334 int (*vfs_extattrctl) __P((struct mount *mp, int cmd, 335 char *attrname, caddr_t arg, 336 struct proc *p)); |
|
334}; 335 336#define VFS_MOUNT(MP, PATH, DATA, NDP, P) \ 337 (*(MP)->mnt_op->vfs_mount)(MP, PATH, DATA, NDP, P) 338#define VFS_START(MP, FLAGS, P) (*(MP)->mnt_op->vfs_start)(MP, FLAGS, P) 339#define VFS_UNMOUNT(MP, FORCE, P) (*(MP)->mnt_op->vfs_unmount)(MP, FORCE, P) 340#define VFS_ROOT(MP, VPP) (*(MP)->mnt_op->vfs_root)(MP, VPP) 341#define VFS_QUOTACTL(MP,C,U,A,P) (*(MP)->mnt_op->vfs_quotactl)(MP, C, U, A, P) 342#define VFS_STATFS(MP, SBP, P) (*(MP)->mnt_op->vfs_statfs)(MP, SBP, P) 343#define VFS_SYNC(MP, WAIT, C, P) (*(MP)->mnt_op->vfs_sync)(MP, WAIT, C, P) 344#define VFS_VGET(MP, INO, VPP) (*(MP)->mnt_op->vfs_vget)(MP, INO, VPP) 345#define VFS_FHTOVP(MP, FIDP, VPP) \ 346 (*(MP)->mnt_op->vfs_fhtovp)(MP, FIDP, VPP) 347#define VFS_VPTOFH(VP, FIDP) (*(VP)->v_mount->mnt_op->vfs_vptofh)(VP, FIDP) 348#define VFS_CHECKEXP(MP, NAM, EXFLG, CRED) \ 349 (*(MP)->mnt_op->vfs_checkexp)(MP, NAM, EXFLG, CRED) | 337}; 338 339#define VFS_MOUNT(MP, PATH, DATA, NDP, P) \ 340 (*(MP)->mnt_op->vfs_mount)(MP, PATH, DATA, NDP, P) 341#define VFS_START(MP, FLAGS, P) (*(MP)->mnt_op->vfs_start)(MP, FLAGS, P) 342#define VFS_UNMOUNT(MP, FORCE, P) (*(MP)->mnt_op->vfs_unmount)(MP, FORCE, P) 343#define VFS_ROOT(MP, VPP) (*(MP)->mnt_op->vfs_root)(MP, VPP) 344#define VFS_QUOTACTL(MP,C,U,A,P) (*(MP)->mnt_op->vfs_quotactl)(MP, C, U, A, P) 345#define VFS_STATFS(MP, SBP, P) (*(MP)->mnt_op->vfs_statfs)(MP, SBP, P) 346#define VFS_SYNC(MP, WAIT, C, P) (*(MP)->mnt_op->vfs_sync)(MP, WAIT, C, P) 347#define VFS_VGET(MP, INO, VPP) (*(MP)->mnt_op->vfs_vget)(MP, INO, VPP) 348#define VFS_FHTOVP(MP, FIDP, VPP) \ 349 (*(MP)->mnt_op->vfs_fhtovp)(MP, FIDP, VPP) 350#define VFS_VPTOFH(VP, FIDP) (*(VP)->v_mount->mnt_op->vfs_vptofh)(VP, FIDP) 351#define VFS_CHECKEXP(MP, NAM, EXFLG, CRED) \ 352 (*(MP)->mnt_op->vfs_checkexp)(MP, NAM, EXFLG, CRED) |
353#define VFS_EXTATTRCTL(MP, C, N, A, P) \ 354 (*(MP)->mnt_op->vfs_extattrctl)(MP, C, N, A, P) |
|
350 351#include <sys/module.h> 352 353#define VFS_SET(vfsops, fsname, flags) \ 354 static struct vfsconf fsname ## _vfsconf = { \ 355 &vfsops, \ 356 #fsname, \ 357 -1, \ --- 76 unchanged lines hidden (view full) --- 434 struct proc *p)); 435int vfs_stdvget __P((struct mount *mp, ino_t ino, struct vnode **vpp)); 436int vfs_stdfhtovp __P((struct mount *mp, struct fid *fhp, struct vnode **vpp)); 437int vfs_stdcheckexp __P((struct mount *mp, struct sockaddr *nam, 438 int *extflagsp, struct ucred **credanonp)); 439int vfs_stdvptofh __P((struct vnode *vp, struct fid *fhp)); 440int vfs_stdinit __P((struct vfsconf *)); 441int vfs_stduninit __P((struct vfsconf *)); | 355 356#include <sys/module.h> 357 358#define VFS_SET(vfsops, fsname, flags) \ 359 static struct vfsconf fsname ## _vfsconf = { \ 360 &vfsops, \ 361 #fsname, \ 362 -1, \ --- 76 unchanged lines hidden (view full) --- 439 struct proc *p)); 440int vfs_stdvget __P((struct mount *mp, ino_t ino, struct vnode **vpp)); 441int vfs_stdfhtovp __P((struct mount *mp, struct fid *fhp, struct vnode **vpp)); 442int vfs_stdcheckexp __P((struct mount *mp, struct sockaddr *nam, 443 int *extflagsp, struct ucred **credanonp)); 444int vfs_stdvptofh __P((struct vnode *vp, struct fid *fhp)); 445int vfs_stdinit __P((struct vfsconf *)); 446int vfs_stduninit __P((struct vfsconf *)); |
447int vfs_stdextattrctl __P((struct mount *mp, int cmd, char *attrname, 448 caddr_t arg, struct proc *p)); |
|
442 443#else /* !KERNEL */ 444 445#include <sys/cdefs.h> 446 447__BEGIN_DECLS 448int fstatfs __P((int, struct statfs *)); 449int getfh __P((const char *, fhandle_t *)); --- 24 unchanged lines hidden --- | 449 450#else /* !KERNEL */ 451 452#include <sys/cdefs.h> 453 454__BEGIN_DECLS 455int fstatfs __P((int, struct statfs *)); 456int getfh __P((const char *, fhandle_t *)); --- 24 unchanged lines hidden --- |