Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/kernfs kernfs does not support mmap(), remove cod...



details:   https://anonhg.NetBSD.org/src/rev/8462a7075189
branches:  trunk
changeset: 581020:8462a7075189
user:      chs <chs%NetBSD.org@localhost>
date:      Fri May 20 13:16:54 2005 +0000

description:
kernfs does not support mmap(), remove code that pretends that it does.

diffstat:

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

diffs (82 lines):

diff -r c8845e4870d0 -r 8462a7075189 sys/miscfs/kernfs/kernfs.h
--- a/sys/miscfs/kernfs/kernfs.h        Fri May 20 12:53:22 2005 +0000
+++ b/sys/miscfs/kernfs/kernfs.h        Fri May 20 13:16:54 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kernfs.h,v 1.23 2004/05/20 06:34:30 atatat Exp $       */
+/*     $NetBSD: kernfs.h,v 1.24 2005/05/20 13:16:54 chs Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -148,7 +148,6 @@
        KERNFS_FILEOP_CLOSE,
        KERNFS_FILEOP_GETATTR,
        KERNFS_FILEOP_IOCTL,
-       KERNFS_FILEOP_MMAP,
        KERNFS_FILEOP_OPEN,
        KERNFS_FILEOP_WRITE,
 } kfsfileop;
diff -r c8845e4870d0 -r 8462a7075189 sys/miscfs/kernfs/kernfs_vnops.c
--- a/sys/miscfs/kernfs/kernfs_vnops.c  Fri May 20 12:53:22 2005 +0000
+++ b/sys/miscfs/kernfs/kernfs_vnops.c  Fri May 20 13:16:54 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.108 2005/05/20 13:16:54 chs 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.108 2005/05/20 13:16:54 chs 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