Source-Changes-HG archive

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

[src/trunk]: src/sys Rename cdev_systrace_init() to cdev_clonemisc_init(), so...



details:   https://anonhg.NetBSD.org/src/rev/d7b3483cbe52
branches:  trunk
changeset: 534179:d7b3483cbe52
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jul 19 16:38:14 2002 +0000

description:
Rename cdev_systrace_init() to cdev_clonemisc_init(), so it can
be properly used by any misc. cloning device.  While here, correct
a comment to indicate that "open" is the only entry point and that
everything else is handled with fileops.

diffstat:

 sys/arch/acorn26/acorn26/conf.c           |  6 +++---
 sys/arch/acorn32/acorn32/conf.c           |  4 ++--
 sys/arch/algor/algor/conf.c               |  6 +++---
 sys/arch/alpha/alpha/conf.c               |  6 +++---
 sys/arch/amiga/amiga/conf.c               |  6 +++---
 sys/arch/arc/arc/conf.c                   |  4 ++--
 sys/arch/arm/arm32/conf.c                 |  4 ++--
 sys/arch/atari/atari/conf.c               |  4 ++--
 sys/arch/bebox/bebox/conf.c               |  4 ++--
 sys/arch/cesfic/cesfic/conf.c             |  4 ++--
 sys/arch/cobalt/cobalt/conf.c             |  4 ++--
 sys/arch/dreamcast/dreamcast/conf.c       |  4 ++--
 sys/arch/evbmips/malta/conf.c             |  6 +++---
 sys/arch/evbsh3/evbsh3/conf.c             |  4 ++--
 sys/arch/hp300/hp300/conf.c               |  6 +++---
 sys/arch/hp700/hp700/conf.c               |  4 ++--
 sys/arch/hpcmips/hpcmips/conf.c           |  4 ++--
 sys/arch/hpcsh/hpcsh/conf.c               |  4 ++--
 sys/arch/i386/i386/conf.c                 |  6 +++---
 sys/arch/luna68k/luna68k/conf.c           |  6 +++---
 sys/arch/mac68k/mac68k/conf.c             |  4 ++--
 sys/arch/macppc/macppc/conf.c             |  4 ++--
 sys/arch/mipsco/mipsco/conf.c             |  4 ++--
 sys/arch/mmeye/mmeye/conf.c               |  4 ++--
 sys/arch/mvme68k/mvme68k/conf.c           |  4 ++--
 sys/arch/mvmeppc/mvmeppc/conf.c           |  4 ++--
 sys/arch/news68k/news68k/conf.c           |  4 ++--
 sys/arch/newsmips/newsmips/conf.c         |  4 ++--
 sys/arch/next68k/next68k/conf.c           |  4 ++--
 sys/arch/ofppc/ofppc/conf.c               |  4 ++--
 sys/arch/pc532/pc532/conf.c               |  4 ++--
 sys/arch/playstation2/playstation2/conf.c |  4 ++--
 sys/arch/pmax/pmax/conf.c                 |  4 ++--
 sys/arch/pmppc/pmppc/conf.c               |  4 ++--
 sys/arch/prep/prep/conf.c                 |  4 ++--
 sys/arch/sandpoint/sandpoint/conf.c       |  4 ++--
 sys/arch/sbmips/sbmips/conf.c             |  6 +++---
 sys/arch/sgimips/sgimips/conf.c           |  4 ++--
 sys/arch/shark/shark/conf.c               |  4 ++--
 sys/arch/sparc/sparc/conf.c               |  4 ++--
 sys/arch/sparc64/sparc64/conf.c           |  4 ++--
 sys/arch/sun2/sun2/conf.c                 |  4 ++--
 sys/arch/sun3/sun3/conf.c                 |  4 ++--
 sys/arch/vax/vax/conf.c                   |  4 ++--
 sys/arch/walnut/walnut/conf.c             |  4 ++--
 sys/arch/x68k/x68k/conf.c                 |  4 ++--
 sys/arch/x86_64/x86_64/conf.c             |  4 ++--
 sys/sys/conf.h                            |  6 +++---
 48 files changed, 106 insertions(+), 106 deletions(-)

diffs (truncated from 947 to 300 lines):

diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/acorn26/acorn26/conf.c
--- a/sys/arch/acorn26/acorn26/conf.c   Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/acorn26/acorn26/conf.c   Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.3 2002/06/17 16:32:57 christos Exp $ */
+/* $NetBSD: conf.c,v 1.4 2002/07/19 16:38:15 thorpej Exp $ */
 /*-
  * Copyright (c) 1998, 2000 Ben Harris
  * All rights reserved.
@@ -32,7 +32,7 @@
 #include "opt_systrace.h"
 #include <sys/param.h>
 
-__RCSID("$NetBSD: conf.c,v 1.3 2002/06/17 16:32:57 christos Exp $");
+__RCSID("$NetBSD: conf.c,v 1.4 2002/07/19 16:38:15 thorpej Exp $");
 
 #include <sys/systm.h>
 #include <sys/buf.h>
@@ -132,7 +132,7 @@
        cdev_disk_init(NRAID,raid),     /* 26: RAIDframe disk driver */
        cdev_clockctl_init(NCLOCKCTL, clockctl),/* 27: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 28: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 28: system call tracing */
 #else
        cdev_notdef(),                  /* 28: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/acorn32/acorn32/conf.c
--- a/sys/arch/acorn32/acorn32/conf.c   Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/acorn32/acorn32/conf.c   Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.6 2002/06/17 16:32:57 christos Exp $        */
+/*     $NetBSD: conf.c,v 1.7 2002/07/19 16:38:16 thorpej Exp $ */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -299,7 +299,7 @@
        cdev_isdntel_init(NISDNTEL, isdntel),   /* 83: isdn phone device */
        cdev_clockctl_init(NCLOCKCTL, clockctl),/* 84: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 85: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 85: system call tracing */
 #else
        cdev_notdef(),                  /* 85: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/algor/algor/conf.c
--- a/sys/arch/algor/algor/conf.c       Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/algor/algor/conf.c       Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.6 2002/06/17 16:32:57 christos Exp $        */
+/*     $NetBSD: conf.c,v 1.7 2002/07/19 16:38:16 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.6 2002/06/17 16:32:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.7 2002/07/19 16:38:16 thorpej Exp $");
 
 #include "opt_systrace.h"
 
@@ -332,7 +332,7 @@
        cdev__oci_init(NMLX,mlx),       /* 65: Mylex DAC960 control interface */
        cdev_clockctl_init(NCLOCKCTL,clockctl), /* 66: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 67: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 67: system call tracing */
 #else
        cdev_notdef(),                  /* 67: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/alpha/alpha/conf.c
--- a/sys/arch/alpha/alpha/conf.c       Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/alpha/alpha/conf.c       Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.65 2002/06/28 23:34:48 thorpej Exp $ */
+/* $NetBSD: conf.c,v 1.66 2002/07/19 16:38:16 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.65 2002/06/28 23:34:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.66 2002/07/19 16:38:16 thorpej Exp $");
 
 #include "opt_systrace.h"
 #include <sys/param.h>
@@ -311,7 +311,7 @@
        cdev__ocm_init(NSTIC,stic),     /* 68: PixelStamp mmap interface */
        cdev_clockctl_init(NCLOCKCTL, clockctl),/* 69: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 70: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 70: system call tracing */
 #else
        cdev_notdef(),                  /* 70: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/amiga/amiga/conf.c
--- a/sys/arch/amiga/amiga/conf.c       Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/amiga/amiga/conf.c       Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.67 2002/06/17 16:32:59 christos Exp $       */
+/*     $NetBSD: conf.c,v 1.68 2002/07/19 16:38:16 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.67 2002/06/17 16:32:59 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.68 2002/07/19 16:38:16 thorpej Exp $");
 
 #include "opt_compat_svr4.h"
 #include "opt_systrace.h"
@@ -198,7 +198,7 @@
        cdev_mouse_init(NWSKBD,wskbd),  /* 54: keyboard */
        cdev_clockctl_init(NCLOCKCTL, clockctl),/* 55: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 56: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 56: system call tracing */
 #else
        cdev_notdef(),                  /* 56: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/arc/arc/conf.c
--- a/sys/arch/arc/arc/conf.c   Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/arc/arc/conf.c   Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.24 2002/06/17 16:32:59 christos Exp $       */
+/*     $NetBSD: conf.c,v 1.25 2002/07/19 16:38:17 thorpej Exp $        */
 /*     $OpenBSD: conf.c,v 1.27 1999/08/12 13:06:33 niklas Exp $ */
 
 /*
@@ -232,7 +232,7 @@
        cdev_notdef(),                  /* 51: OpenBSD xfs comm. device */
        cdev_clockctl_init(NCLOCKCTL, clockctl),/* 52: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 53: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 53: system call tracing */
 #else
        cdev_notdef(),                  /* 53: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/arm/arm32/conf.c
--- a/sys/arch/arm/arm32/conf.c Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/arm/arm32/conf.c Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.13 2002/07/16 14:20:04 ichiro Exp $ */
+/*     $NetBSD: conf.c,v 1.14 2002/07/19 16:38:17 thorpej Exp $        */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -507,7 +507,7 @@
        cdev_ir_init(NCIR,cir),                 /* 96: Consumer Ir */
        cdev_radio_init(NRADIO,radio),          /* 97: generic radio I/O */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),        /* 98: system call tracing */
+       cdev_clonemisc_init(1, systrace),       /* 98: system call tracing */
 #else
        cdev_notdef(),                          /* 98: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/atari/atari/conf.c
--- a/sys/arch/atari/atari/conf.c       Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/atari/atari/conf.c       Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.53 2002/06/17 16:33:00 christos Exp $       */
+/*     $NetBSD: conf.c,v 1.54 2002/07/19 16:38:17 thorpej Exp $        */
 
 /*
  * Copyright (c) 1991 The Regents of the University of California.
@@ -251,7 +251,7 @@
        cdev_svr4_net_init(NSVR4_NET,svr4_net), /* 51: svr4 net pseudo-device */
        cdev_clockctl_init(NCLOCKCTL, clockctl),/* 52: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 53: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 53: system call tracing */
 #else
        cdev_notdef(),                  /* 53: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/bebox/bebox/conf.c
--- a/sys/arch/bebox/bebox/conf.c       Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/bebox/bebox/conf.c       Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.19 2002/06/17 16:33:00 christos Exp $       */
+/*     $NetBSD: conf.c,v 1.20 2002/07/19 16:38:17 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -256,7 +256,7 @@
        cdev_isdntel_init(NISDNTEL, isdntel),   /* 57: isdn phone device */
        cdev_clockctl_init(NCLOCKCTL, clockctl),/* 58: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 59: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 59: system call tracing */
 #else
        cdev_notdef(),                  /* 59: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/cesfic/cesfic/conf.c
--- a/sys/arch/cesfic/cesfic/conf.c     Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/cesfic/cesfic/conf.c     Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.3 2002/06/17 16:33:01 christos Exp $        */
+/*     $NetBSD: conf.c,v 1.4 2002/07/19 16:38:17 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -122,7 +122,7 @@
        cdev_rnd_init(NRND,rnd),        /* 21: random source pseudo-device */
        cdev_clockctl_init(NCLOCKCTL, clockctl),/* 22: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 23: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 23: system call tracing */
 #else
        cdev_notdef(),                  /* 23: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/cobalt/cobalt/conf.c
--- a/sys/arch/cobalt/cobalt/conf.c     Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/cobalt/cobalt/conf.c     Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.14 2002/06/17 16:33:01 christos Exp $       */
+/*     $NetBSD: conf.c,v 1.15 2002/07/19 16:38:18 thorpej Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -156,7 +156,7 @@
        cdev_isdntel_init(NISDNTEL, isdntel),   /* 32: isdn phone device */
        cdev_clockctl_init(NCLOCKCTL, clockctl),/* 33: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 34: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 34: system call tracing */
 #else
        cdev_notdef(),                  /* 34: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/dreamcast/dreamcast/conf.c
--- a/sys/arch/dreamcast/dreamcast/conf.c       Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/dreamcast/dreamcast/conf.c       Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.7 2002/06/17 16:33:01 christos Exp $        */
+/*     $NetBSD: conf.c,v 1.8 2002/07/19 16:38:18 thorpej Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Charles M. Hannum.  All rights reserved.
@@ -222,7 +222,7 @@
        cdev__oci_init(NMAPLE, maple),  /* 58: Maple bus */
        cdev_clockctl_init(NCLOCKCTL, clockctl),/* 59: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 60: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 60: system call tracing */
 #else
        cdev_notdef(),                  /* 60: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/evbmips/malta/conf.c
--- a/sys/arch/evbmips/malta/conf.c     Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/evbmips/malta/conf.c     Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.3 2002/06/17 16:33:01 christos Exp $        */
+/*     $NetBSD: conf.c,v 1.4 2002/07/19 16:38:18 thorpej Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.3 2002/06/17 16:33:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.4 2002/07/19 16:38:18 thorpej Exp $");
 
 #include "opt_systrace.h"
 
@@ -339,7 +339,7 @@
        cdev_notdef(),                  /* 68 */
        cdev_clockctl_init(NCLOCKCTL,clockctl), /* 69: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 70: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 70: system call tracing */
 #else
        cdev_notdef(),                  /* 70: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/evbsh3/evbsh3/conf.c
--- a/sys/arch/evbsh3/evbsh3/conf.c     Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/evbsh3/evbsh3/conf.c     Fri Jul 19 16:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.6 2002/06/17 16:33:02 christos Exp $        */
+/*     $NetBSD: conf.c,v 1.7 2002/07/19 16:38:18 thorpej Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Charles M. Hannum.  All rights reserved.
@@ -200,7 +200,7 @@
        cdev_wdog_init(NWDOG,wdog),     /* 51: watchdog timer */
        cdev_clockctl_init(NCLOCKCTL, clockctl),/* 52: clockctl pseudo device */
 #ifdef SYSTRACE
-       cdev_systrace_init(1, systrace),/* 53: system call tracing */
+       cdev_clonemisc_init(1, systrace),/* 53: system call tracing */
 #else
        cdev_notdef(),                  /* 54: system call tracing */
 #endif
diff -r 743b04c8507f -r d7b3483cbe52 sys/arch/hp300/hp300/conf.c
--- a/sys/arch/hp300/hp300/conf.c       Fri Jul 19 16:32:13 2002 +0000
+++ b/sys/arch/hp300/hp300/conf.c       Fri Jul 19 16:38:14 2002 +0000



Home | Main Index | Thread Index | Old Index