Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/sys/miscfs/kernfs Pull up revision 1.108 (requested by ch...



details:   https://anonhg.NetBSD.org/src/rev/9d3da54172d1
branches:  netbsd-3
changeset: 575894:9d3da54172d1
user:      tron <tron%NetBSD.org@localhost>
date:      Sat May 28 12:39:05 2005 +0000

description:
Pull up revision 1.108 (requested by chs in ticket #329):
kernfs does not support mmap(), remove code that pretends that it does.

diffstat:

 sys/miscfs/kernfs/kernfs_vnops.c |  23 ++---------------------
 1 files changed, 2 insertions(+), 21 deletions(-)

diffs (65 lines):

diff -r 0a576bbcd75e -r 9d3da54172d1 sys/miscfs/kernfs/kernfs_vnops.c
--- a/sys/miscfs/kernfs/kernfs_vnops.c  Sat May 28 05:42:17 2005 +0000
+++ b/sys/miscfs/kernfs/kernfs_vnops.c  Sat May 28 12:39:05 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kernfs_vnops.c,v 1.107 2005/02/26 22:59:00 perry Exp $ */
+/*     $NetBSD: kernfs_vnops.c,v 1.107.2.1 2005/05/28 12:39:05 tron Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.107 2005/02/26 22:59:00 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.107.2.1 2005/05/28 12:39:05 tron Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ipsec.h"
@@ -164,7 +164,6 @@
   { .kf_fileop = KERNFS_FILEOP_GETATTR,
     .kf_genop = {kernfs_default_fileop_getattr} },
   { .kf_fileop = KERNFS_FILEOP_IOCTL },
-  { .kf_fileop = KERNFS_FILEOP_MMAP },
   { .kf_fileop = KERNFS_FILEOP_CLOSE },
   { .kf_fileop = KERNFS_FILEOP_WRITE, .kf_genop = {kernfs_default_xwrite} },
 };
@@ -183,7 +182,6 @@
 int    kernfs_ioctl    __P((void *));
 #define        kernfs_poll     genfs_poll
 #define kernfs_revoke  genfs_revoke
-int    kernfs_mmap     __P((void *));
 #define        kernfs_fsync    genfs_nullop
 #define        kernfs_seek     genfs_nullop
 #define        kernfs_remove   genfs_eopnotsupp
@@ -233,7 +231,6 @@
        { &vop_ioctl_desc, kernfs_ioctl },              /* ioctl */
        { &vop_poll_desc, kernfs_poll },                /* poll */
        { &vop_revoke_desc, kernfs_revoke },            /* revoke */
-       { &vop_mmap_desc, kernfs_mmap },                /* mmap */
        { &vop_fsync_desc, kernfs_fsync },              /* fsync */
        { &vop_seek_desc, kernfs_seek },                /* seek */
        { &vop_remove_desc, kernfs_remove },            /* remove */
@@ -1012,22 +1009,6 @@
            EPASSTHROUGH);
 }
 
-int
-kernfs_mmap(v)
-       void *v;
-{
-       struct vop_mmap_args /* {
-               const struct vnodeop_desc *a_desc;
-               struct vnode *a_vp;
-               int a_fflags;
-               struct ucred *a_cred;
-               struct proc *a_p;
-       } */ *ap = v;
-       struct kernfs_node *kfs = VTOKERN(ap->a_vp);
-
-       return kernfs_try_fileop(kfs->kfs_type, KERNFS_FILEOP_MMAP, v, 0);
-}
-
 static int
 kernfs_setdirentfileno_kt(struct dirent *d, const struct kern_target *kt,
     u_int32_t value, struct vop_readdir_args *ap)



Home | Main Index | Thread Index | Old Index