devfs_vfsops.c (101308) | devfs_vfsops.c (101777) |
---|---|
1/* 2 * Copyright (c) 1992, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2000 5 * Poul-Henning Kamp. All rights reserved. 6 * 7 * This code is derived from software donated to Berkeley by 8 * Jan-Simon Pendry. --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * @(#)kernfs_vfsops.c 8.10 (Berkeley) 5/14/95 32 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vfsops.c 1.36 33 * | 1/* 2 * Copyright (c) 1992, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2000 5 * Poul-Henning Kamp. All rights reserved. 6 * 7 * This code is derived from software donated to Berkeley by 8 * Jan-Simon Pendry. --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * @(#)kernfs_vfsops.c 8.10 (Berkeley) 5/14/95 32 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vfsops.c 1.36 33 * |
34 * $FreeBSD: head/sys/fs/devfs/devfs_vfsops.c 101308 2002-08-04 10:29:36Z jeff $ | 34 * $FreeBSD: head/sys/fs/devfs/devfs_vfsops.c 101777 2002-08-13 10:05:50Z phk $ |
35 */ 36 37#include "opt_devfs.h" 38#include "opt_mac.h" 39#ifndef NODEVFS 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 4 unchanged lines hidden (view full) --- 47#include <sys/mount.h> 48#include <sys/proc.h> 49#include <sys/vnode.h> 50 51#include <fs/devfs/devfs.h> 52 53MALLOC_DEFINE(M_DEVFS, "DEVFS", "DEVFS data"); 54 | 35 */ 36 37#include "opt_devfs.h" 38#include "opt_mac.h" 39#ifndef NODEVFS 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 4 unchanged lines hidden (view full) --- 47#include <sys/mount.h> 48#include <sys/proc.h> 49#include <sys/vnode.h> 50 51#include <fs/devfs/devfs.h> 52 53MALLOC_DEFINE(M_DEVFS, "DEVFS", "DEVFS data"); 54 |
55static int devfs_mount(struct mount *mp, struct nameidata *ndp, 56 struct thread *td); 57static int devfs_unmount(struct mount *mp, int mntflags, 58 struct thread *td); 59static int devfs_root(struct mount *mp, struct vnode **vpp); 60static int devfs_statfs(struct mount *mp, struct statfs *sbp, 61 struct thread *td); | 55static vfs_nmount_t devfs_nmount; 56static vfs_unmount_t devfs_unmount; 57static vfs_root_t devfs_root; 58static vfs_statfs_t devfs_statfs; |
62 63/* 64 * Mount the filesystem 65 */ 66static int | 59 60/* 61 * Mount the filesystem 62 */ 63static int |
67devfs_mount(mp, ndp, td) | 64devfs_nmount(mp, ndp, td) |
68 struct mount *mp; 69 struct nameidata *ndp; 70 struct thread *td; 71{ 72 int error; 73 struct devfs_mount *fmp; 74 struct vnode *rvp; 75 --- 120 unchanged lines hidden (view full) --- 196 vfs_stdsync, 197 vfs_stdvget, 198 vfs_stdfhtovp, 199 vfs_stdcheckexp, 200 vfs_stdvptofh, 201 vfs_stdinit, 202 vfs_stduninit, 203 vfs_stdextattrctl, | 65 struct mount *mp; 66 struct nameidata *ndp; 67 struct thread *td; 68{ 69 int error; 70 struct devfs_mount *fmp; 71 struct vnode *rvp; 72 --- 120 unchanged lines hidden (view full) --- 193 vfs_stdsync, 194 vfs_stdvget, 195 vfs_stdfhtovp, 196 vfs_stdcheckexp, 197 vfs_stdvptofh, 198 vfs_stdinit, 199 vfs_stduninit, 200 vfs_stdextattrctl, |
204 devfs_mount, | 201 devfs_nmount, |
205}; 206 207VFS_SET(devfs_vfsops, devfs, VFCF_SYNTHETIC); 208#endif | 202}; 203 204VFS_SET(devfs_vfsops, devfs, VFCF_SYNTHETIC); 205#endif |