Source-Changes-HG archive

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

[src/trunk]: src/sys add fo_name so we can identify the fileops in a simple way.



details:   https://anonhg.NetBSD.org/src/rev/00dd0c902581
branches:  trunk
changeset: 828174:00dd0c902581
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 30 20:25:54 2017 +0000

description:
add fo_name so we can identify the fileops in a simple way.

diffstat:

 sys/arch/xen/xen/xenevt.c                                   |   5 ++-
 sys/compat/svr4/svr4_net.c                                  |   5 ++-
 sys/compat/svr4_32/svr4_32_net.c                            |   5 ++-
 sys/dev/audio.c                                             |   5 ++-
 sys/dev/dmover/dmover_io.c                                  |   5 ++-
 sys/dev/dtv/dtv_demux.c                                     |   5 ++-
 sys/dev/filemon/filemon.c                                   |   5 ++-
 sys/dev/iscsi/iscsi_main.c                                  |   1 +
 sys/dev/pad/pad.c                                           |   5 ++-
 sys/dev/putter/putter.c                                     |   5 ++-
 sys/dev/rndpseudo.c                                         |   5 ++-
 sys/external/bsd/drm2/drm/drm_drv.c                         |   5 ++-
 sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c |   1 +
 sys/kern/kern_drvctl.c                                      |   5 ++-
 sys/kern/kern_event.c                                       |  14 +++++++-----
 sys/kern/sys_mqueue.c                                       |   5 ++-
 sys/kern/sys_pipe.c                                         |   5 ++-
 sys/kern/sys_socket.c                                       |   5 ++-
 sys/kern/uipc_sem.c                                         |   5 ++-
 sys/kern/vfs_vnops.c                                        |   5 ++-
 sys/net/bpf.c                                               |   5 ++-
 sys/net/if_tap.c                                            |   5 ++-
 sys/opencrypto/cryptodev.c                                  |   5 ++-
 sys/rump/librump/rumpkern/cons.c                            |   5 ++-
 sys/sys/file.h                                              |   3 +-
 25 files changed, 75 insertions(+), 49 deletions(-)

diffs (truncated from 627 to 300 lines):

diff -r c4daf5174a8c -r 00dd0c902581 sys/arch/xen/xen/xenevt.c
--- a/sys/arch/xen/xen/xenevt.c Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/arch/xen/xen/xenevt.c Thu Nov 30 20:25:54 2017 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xenevt.c,v 1.47 2017/07/16 14:02:48 cherry Exp $      */
+/*      $NetBSD: xenevt.c,v 1.48 2017/11/30 20:25:54 christos Exp $      */
 
 /*
  * Copyright (c) 2005 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenevt.c,v 1.47 2017/07/16 14:02:48 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenevt.c,v 1.48 2017/11/30 20:25:54 christos Exp $");
 
 #include "opt_xen.h"
 #include <sys/param.h>
@@ -74,6 +74,7 @@
 /* static int  xenevt_fkqfilter(struct file *, struct knote *); */
 
 static const struct fileops xenevt_fileops = {
+       .fo_name = "xenevt",
        .fo_read = xenevt_fread,
        .fo_write = xenevt_fwrite,
        .fo_ioctl = xenevt_fioctl,
diff -r c4daf5174a8c -r 00dd0c902581 sys/compat/svr4/svr4_net.c
--- a/sys/compat/svr4/svr4_net.c        Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/compat/svr4/svr4_net.c        Thu Nov 30 20:25:54 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svr4_net.c,v 1.61 2014/09/05 09:21:55 matt Exp $       */
+/*     $NetBSD: svr4_net.c,v 1.62 2017/11/30 20:25:54 christos Exp $   */
 
 /*-
  * Copyright (c) 1994, 2008, 2009 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_net.c,v 1.61 2014/09/05 09:21:55 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_net.c,v 1.62 2017/11/30 20:25:54 christos Exp $");
 
 #define COMPAT_SVR4 1
 
@@ -110,6 +110,7 @@
 int svr4_soo_close(file_t *);
 
 static const struct fileops svr4_netops = {
+       .fo_name = "srv4_net",
        .fo_read = soo_read,
        .fo_write = soo_write,
        .fo_ioctl = soo_ioctl,
diff -r c4daf5174a8c -r 00dd0c902581 sys/compat/svr4_32/svr4_32_net.c
--- a/sys/compat/svr4_32/svr4_32_net.c  Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/compat/svr4_32/svr4_32_net.c  Thu Nov 30 20:25:54 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svr4_32_net.c,v 1.22 2014/09/05 09:21:55 matt Exp $     */
+/*     $NetBSD: svr4_32_net.c,v 1.23 2017/11/30 20:25:54 christos Exp $         */
 
 /*-
  * Copyright (c) 1994, 2008, 2009 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_32_net.c,v 1.22 2014/09/05 09:21:55 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_32_net.c,v 1.23 2017/11/30 20:25:54 christos Exp $");
 
 #define COMPAT_SVR4 1
 
@@ -95,6 +95,7 @@
 int svr4_ptm_alloc(struct proc *);
 
 static const struct fileops svr4_32_netops = {
+       .fo_read = "svr4_32_net",
        .fo_read = soo_read,
        .fo_write = soo_write,
        .fo_ioctl = soo_ioctl,
diff -r c4daf5174a8c -r 00dd0c902581 sys/dev/audio.c
--- a/sys/dev/audio.c   Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/dev/audio.c   Thu Nov 30 20:25:54 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.441 2017/11/28 07:35:27 nat Exp $  */
+/*     $NetBSD: audio.c,v 1.442 2017/11/30 20:25:54 christos Exp $     */
 
 /*-
  * Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.441 2017/11/28 07:35:27 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.442 2017/11/30 20:25:54 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -437,6 +437,7 @@
 };
 
 const struct fileops audio_fileops = {
+       .fo_name = "audio",
        .fo_read = audioread,
        .fo_write = audiowrite,
        .fo_ioctl = audioioctl,
diff -r c4daf5174a8c -r 00dd0c902581 sys/dev/dmover/dmover_io.c
--- a/sys/dev/dmover/dmover_io.c        Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/dev/dmover/dmover_io.c        Thu Nov 30 20:25:54 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dmover_io.c,v 1.44 2015/08/20 14:40:17 christos Exp $  */
+/*     $NetBSD: dmover_io.c,v 1.45 2017/11/30 20:25:55 christos Exp $  */
 
 /*
  * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.44 2015/08/20 14:40:17 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.45 2017/11/30 20:25:55 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/queue.h>
@@ -766,6 +766,7 @@
 }
 
 static const struct fileops dmio_fileops = {
+       .fo_name = "dmio",
        .fo_read = dmio_read,
        .fo_write = dmio_write,
        .fo_ioctl = dmio_ioctl,
diff -r c4daf5174a8c -r 00dd0c902581 sys/dev/dtv/dtv_demux.c
--- a/sys/dev/dtv/dtv_demux.c   Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/dev/dtv/dtv_demux.c   Thu Nov 30 20:25:54 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dtv_demux.c,v 1.7 2017/06/01 02:45:10 chs Exp $ */
+/* $NetBSD: dtv_demux.c,v 1.8 2017/11/30 20:25:55 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -52,7 +52,7 @@
  */ 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dtv_demux.c,v 1.7 2017/06/01 02:45:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dtv_demux.c,v 1.8 2017/11/30 20:25:55 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -75,6 +75,7 @@
 static int     dtv_demux_close(struct file *);
 
 static const struct fileops dtv_demux_fileops = {
+       .fo_name = "dtv_demux",
        .fo_read = dtv_demux_read,
        .fo_write = fbadop_write,
        .fo_ioctl = dtv_demux_ioctl,
diff -r c4daf5174a8c -r 00dd0c902581 sys/dev/filemon/filemon.c
--- a/sys/dev/filemon/filemon.c Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/dev/filemon/filemon.c Thu Nov 30 20:25:54 2017 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: filemon.c,v 1.28 2016/01/11 01:37:36 pgoyette Exp $ */
+/*      $NetBSD: filemon.c,v 1.29 2017/11/30 20:25:55 christos Exp $ */
 /*
  * Copyright (c) 2010, Juniper Networks, Inc.
  *
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: filemon.c,v 1.28 2016/01/11 01:37:36 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: filemon.c,v 1.29 2017/11/30 20:25:55 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -70,6 +70,7 @@
 static int filemon_close(struct file *);
 
 static const struct fileops filemon_fileops = {
+       .fo_name = "filemon",
        .fo_ioctl = filemon_ioctl,
        .fo_close = filemon_close,
        .fo_read = fbadop_read,
diff -r c4daf5174a8c -r 00dd0c902581 sys/dev/iscsi/iscsi_main.c
--- a/sys/dev/iscsi/iscsi_main.c        Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/dev/iscsi/iscsi_main.c        Thu Nov 30 20:25:54 2017 +0000
@@ -85,6 +85,7 @@
 static int iscsiclose(struct file *);
 
 static const struct fileops iscsi_fileops = {
+       .fo_name = "iscsi",
        .fo_ioctl = iscsiioctl,
        .fo_close = iscsiclose,
 };
diff -r c4daf5174a8c -r 00dd0c902581 sys/dev/pad/pad.c
--- a/sys/dev/pad/pad.c Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/dev/pad/pad.c Thu Nov 30 20:25:54 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pad.c,v 1.42 2017/07/30 00:50:52 nat Exp $ */
+/* $NetBSD: pad.c,v 1.43 2017/11/30 20:25:55 christos Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.42 2017/07/30 00:50:52 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.43 2017/11/30 20:25:55 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -172,6 +172,7 @@
 };
 
 const struct fileops pad_fileops = {
+       .fo_name = "pad",
        .fo_read = fops_pad_read,
        .fo_write = pad_write,
        .fo_ioctl = pad_ioctl,
diff -r c4daf5174a8c -r 00dd0c902581 sys/dev/putter/putter.c
--- a/sys/dev/putter/putter.c   Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/dev/putter/putter.c   Thu Nov 30 20:25:54 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: putter.c,v 1.36 2017/10/25 08:12:38 maya Exp $ */
+/*     $NetBSD: putter.c,v 1.37 2017/11/30 20:25:55 christos Exp $     */
 
 /*
  * Copyright (c) 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.36 2017/10/25 08:12:38 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.37 2017/11/30 20:25:55 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -207,6 +207,7 @@
 
 
 static const struct fileops putter_fileops = {
+       .fo_name = "putter",
        .fo_read = putter_fop_read,
        .fo_write = putter_fop_write,
        .fo_ioctl = putter_fop_ioctl,
diff -r c4daf5174a8c -r 00dd0c902581 sys/dev/rndpseudo.c
--- a/sys/dev/rndpseudo.c       Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/dev/rndpseudo.c       Thu Nov 30 20:25:54 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rndpseudo.c,v 1.35 2015/08/20 14:40:17 christos Exp $  */
+/*     $NetBSD: rndpseudo.c,v 1.36 2017/11/30 20:25:54 christos Exp $  */
 
 /*-
  * Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.35 2015/08/20 14:40:17 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.36 2017/11/30 20:25:54 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -133,6 +133,7 @@
 static int rnd_kqfilter(struct file *, struct knote *);
 
 const struct fileops rnd_fileops = {
+       .fo_name = "rnd",
        .fo_read = rnd_read,
        .fo_write = rnd_write,
        .fo_ioctl = rnd_ioctl,
diff -r c4daf5174a8c -r 00dd0c902581 sys/external/bsd/drm2/drm/drm_drv.c
--- a/sys/external/bsd/drm2/drm/drm_drv.c       Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/external/bsd/drm2/drm/drm_drv.c       Thu Nov 30 20:25:54 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_drv.c,v 1.18 2017/10/25 08:12:39 maya Exp $        */
+/*     $NetBSD: drm_drv.c,v 1.19 2017/11/30 20:25:55 christos Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.18 2017/10/25 08:12:39 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.19 2017/11/30 20:25:55 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -238,6 +238,7 @@
 };
 
 static const struct fileops drm_fileops = {
+       .fo_name = "drm",
        .fo_read = drm_read,
        .fo_write = fbadop_write,
        .fo_ioctl = drm_ioctl,
diff -r c4daf5174a8c -r 00dd0c902581 sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c
--- a/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c       Thu Nov 30 19:55:47 2017 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c       Thu Nov 30 20:25:54 2017 +0000



Home | Main Index | Thread Index | Old Index