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.
This commit is contained in:
thorpej 2002-07-19 16:38:14 +00:00
parent 2f2d6a6d64
commit 3912e469dd
48 changed files with 106 additions and 106 deletions

View File

@ -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 @@ struct cdevsw cdevsw[] = {
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

View File

@ -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 @@ struct cdevsw cdevsw[] = {
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

View File

@ -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 @@ struct cdevsw cdevsw[] =
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

View File

@ -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 @@ struct cdevsw cdevsw[] =
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

View File

@ -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 @@ struct cdevsw cdevsw[] =
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

View File

@ -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 @@ struct cdevsw cdevsw[] =
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

View File

@ -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 @@ struct cdevsw cdevsw[] = {
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

View File

@ -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 @@ struct cdevsw cdevsw[] =
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

View File

@ -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 @@ struct cdevsw cdevsw[] =
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

View File

@ -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 @@ struct cdevsw cdevsw[] =
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

View File

@ -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 @@ struct cdevsw cdevsw[] =
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

View File

@ -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 @@ struct cdevsw cdevsw[] =
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

View File

@ -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 @@ struct cdevsw cdevsw[] =
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

View File

@ -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 @@ struct cdevsw cdevsw[] =
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

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.52 2002/06/17 16:33:02 christos Exp $ */
/* $NetBSD: conf.c,v 1.53 2002/07/19 16:38:19 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.52 2002/06/17 16:33:02 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.53 2002/07/19 16:38:19 thorpej Exp $");
#include "opt_compat_svr4.h"
#include "opt_systrace.h"
@ -201,7 +201,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 41: wsfont pseudo-device */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 42: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 43: system call tracing */
cdev_clonemisc_init(1, systrace),/* 43: system call tracing */
#else
cdev_notdef(), /* 43: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.2 2002/06/17 16:33:03 christos Exp $ */
/* $NetBSD: conf.c,v 1.3 2002/07/19 16:38:19 thorpej Exp $ */
/* $OpenBSD: conf.c,v 1.15 2001/09/28 02:53:13 mickey Exp $ */
@ -214,7 +214,7 @@ struct cdevsw cdevsw[] =
#endif
cdev_altq_init(NALTQ,altq), /* 33: ALTQ control interface */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 34: system call tracing */
cdev_clonemisc_init(1, systrace),/* 34: system call tracing */
#else
cdev_notdef(), /* 34 */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.19 2002/06/17 16:33:03 christos Exp $ */
/* $NetBSD: conf.c,v 1.20 2002/07/19 16:38:19 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -254,7 +254,7 @@ struct cdevsw cdevsw[] =
cdev_lkm_init(NLKM,lkm), /* 47: loadable module driver */
cdev_audio_init(NAUDIO,audio), /* 48: VR4121 audio interface */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 49: system call tracing */
cdev_clonemisc_init(1, systrace),/* 49: system call tracing */
#else
cdev_notdef(), /* 49: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.9 2002/06/17 16:33:05 christos Exp $ */
/* $NetBSD: conf.c,v 1.10 2002/07/19 16:38:19 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -187,7 +187,7 @@ struct cdevsw cdevsw[] =
biconsdev), /* 33: bicons pseudo-dev */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 34: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 35: system call tracing */
cdev_clonemisc_init(1, systrace),/* 35: system call tracing */
#else
cdev_notdef(), /* 35: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.157 2002/06/28 23:29:26 thorpej Exp $ */
/* $NetBSD: conf.c,v 1.158 2002/07/19 16:38:20 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.157 2002/06/28 23:29:26 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.158 2002/07/19 16:38:20 thorpej Exp $");
#include "opt_compat_svr4.h"
#include "opt_systrace.h"
@ -364,7 +364,7 @@ struct cdevsw cdevsw[] =
cdev_netsmb_init(NNETSMB,nsmb_dev_),/* 88: SMB */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 89: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 90: system call tracing */
cdev_clonemisc_init(1, systrace),/* 90: system call tracing */
#else
cdev_notdef(), /* 90: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.6 2002/07/04 23:24:43 lukem Exp $ */
/* $NetBSD: conf.c,v 1.7 2002/07/19 16:38:20 thorpej Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.6 2002/07/04 23:24:43 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.7 2002/07/19 16:38:20 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -182,7 +182,7 @@ struct cdevsw cdevsw[] =
cdev_rnd_init(NRND,rnd), /* 34: random source pseudo-device */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 35: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 36: system call tracing */
cdev_clonemisc_init(1, systrace),/* 36: system call tracing */
#else
cdev_notdef(), /* 36: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.57 2002/06/17 16:33:08 christos Exp $ */
/* $NetBSD: conf.c,v 1.58 2002/07/19 16:38:20 thorpej Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@ -224,7 +224,7 @@ struct cdevsw cdevsw[] =
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 48: clockctl pseudo device */
cdev_disk_init(NWD, wd), /* 49: IDE disk */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 50: system call tracing */
cdev_clonemisc_init(1, systrace),/* 50: system call tracing */
#else
cdev_notdef(), /* 50: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.44 2002/06/29 19:04:45 matt Exp $ */
/* $NetBSD: conf.c,v 1.45 2002/07/19 16:38:20 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -253,7 +253,7 @@ struct cdevsw cdevsw[] = {
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 61: settimeofday driver */
cdev_sysmon_init(NSYSMON, sysmon), /* 62: System Monitor */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 63: system call tracing */
cdev_clonemisc_init(1, systrace),/* 63: system call tracing */
#else
cdev_notdef(), /* 63: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.6 2002/06/17 16:33:09 christos Exp $ */
/* $NetBSD: conf.c,v 1.7 2002/07/19 16:38:21 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -206,7 +206,7 @@ struct cdevsw cdevsw[] =
cdev_disk_init(NRAID,raid), /* 74: RAIDframe disk driver */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 75: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 76: system call tracing */
cdev_clonemisc_init(1, systrace),/* 76: system call tracing */
#else
cdev_notdef(), /* 76: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.8 2002/06/17 16:33:10 christos Exp $ */
/* $NetBSD: conf.c,v 1.9 2002/07/19 16:38:21 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
@ -196,7 +196,7 @@ struct cdevsw cdevsw[] =
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(), /* 53: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.25 2002/06/17 16:33:10 christos Exp $ */
/* $NetBSD: conf.c,v 1.26 2002/07/19 16:38:21 thorpej Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -187,7 +187,7 @@ struct cdevsw cdevsw[] =
cdev_svr4_net_init(NSVR4_NET,svr4_net), /* 38: svr4 net pseudo-device */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 39: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 40: system call tracing */
cdev_clonemisc_init(1, systrace),/* 40: system call tracing */
#else
cdev_notdef(), /* 40: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.4 2002/06/17 16:33:11 christos Exp $ */
/* $NetBSD: conf.c,v 1.5 2002/07/19 16:38:21 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -257,7 +257,7 @@ struct cdevsw cdevsw[] =
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

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.7 2002/06/17 16:33:11 christos Exp $ */
/* $NetBSD: conf.c,v 1.8 2002/07/19 16:38:21 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -276,7 +276,7 @@ struct cdevsw cdevsw[] =
cdev_svr4_net_init(NSVR4_NET,svr4_net), /* 75: svr4 net pseudo-device */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 76: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 77: system call tracing */
cdev_clonemisc_init(1, systrace),/* 77: system call tracing */
#else
cdev_notdef(), /* 77: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.10 2002/06/17 16:33:11 christos Exp $ */
/* $NetBSD: conf.c,v 1.11 2002/07/19 16:38:22 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -200,7 +200,7 @@ struct cdevsw cdevsw[] = {
cdev_disk_init(NRAID,raid), /* 74: RAIDframe disk driver */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 75: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 76: system call tracing */
cdev_clonemisc_init(1, systrace),/* 76: system call tracing */
#else
cdev_notdef(), /* 76: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.11 2002/06/17 16:33:12 christos Exp $ */
/* $NetBSD: conf.c,v 1.12 2002/07/19 16:38:22 thorpej Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@ -203,7 +203,7 @@ struct cdevsw cdevsw[] =
cdev_mouse_init(NWSMUX, wsmux), /* 45: ws multiplexor */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 46: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 47: system call tracing */
cdev_clonemisc_init(1, systrace),/* 47: system call tracing */
#else
cdev_notdef(), /* 47: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.12 2002/06/17 16:33:12 christos Exp $ */
/* $NetBSD: conf.c,v 1.13 2002/07/19 16:38:22 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -135,7 +135,7 @@ struct cdevsw cdevsw[] = {
cdev_disk_init(NLD,ld), /* 18: logical disks */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 19: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 20: system call tracing */
cdev_clonemisc_init(1, systrace),/* 20: system call tracing */
#else
cdev_notdef(), /* 20: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.40 2002/06/17 16:33:13 christos Exp $ */
/* $NetBSD: conf.c,v 1.41 2002/07/19 16:38:22 thorpej Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -124,7 +124,7 @@ struct cdevsw cdevsw[] =
cdev_disk_init(NRAID,raid), /* 31: RAIDframe disk driver */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 32: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 33: system call tracing */
cdev_clonemisc_init(1, systrace),/* 33: system call tracing */
#else
cdev_notdef(), /* 33: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.3 2002/06/17 16:33:13 christos Exp $ */
/* $NetBSD: conf.c,v 1.4 2002/07/19 16:38:22 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -201,7 +201,7 @@ struct cdevsw cdevsw[] =
uscanner), /* 37: USB scanner */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 38: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 39: system call tracing */
cdev_clonemisc_init(1, systrace),/* 39: system call tracing */
#else
cdev_notdef(), /* 39: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.45 2002/06/17 16:33:14 christos Exp $ */
/* $NetBSD: conf.c,v 1.46 2002/07/19 16:38:23 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -284,7 +284,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 101: reserved for wsmux */
cdev_notdef(), /* 102: reserved for wsfont */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 103: system call tracing */
cdev_clonemisc_init(1, systrace),/* 103: system call tracing */
#else
cdev_notdef(), /* 103: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.2 2002/06/17 16:33:14 christos Exp $ */
/* $NetBSD: conf.c,v 1.3 2002/07/19 16:38:23 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -237,7 +237,7 @@ struct cdevsw cdevsw[] =
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

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.10 2002/06/17 16:33:15 christos Exp $ */
/* $NetBSD: conf.c,v 1.11 2002/07/19 16:38:23 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -270,7 +270,7 @@ struct cdevsw cdevsw[] =
cdev_pci_init(NPCI,pci), /* 72: PCI bus access device */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 73: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 74: system call tracing */
cdev_clonemisc_init(1, systrace),/* 74: system call tracing */
#else
cdev_notdef(), /* 74: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.9 2002/06/17 16:33:15 christos Exp $ */
/* $NetBSD: conf.c,v 1.10 2002/07/19 16:38:23 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -253,7 +253,7 @@ struct cdevsw cdevsw[] =
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

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.5 2002/07/11 00:17:39 simonb Exp $ */
/* $NetBSD: conf.c,v 1.6 2002/07/19 16:38:24 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.5 2002/07/11 00:17:39 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.6 2002/07/19 16:38:24 thorpej Exp $");
#include "opt_systrace.h"
@ -356,7 +356,7 @@ struct cdevsw cdevsw[] =
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

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.18 2002/06/17 16:33:16 christos Exp $ */
/* $NetBSD: conf.c,v 1.19 2002/07/19 16:38:24 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -213,7 +213,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 62: */
#endif
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 63: system call tracing */
cdev_clonemisc_init(1, systrace),/* 63: system call tracing */
#else
cdev_notdef(), /* 63: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.4 2002/06/17 16:33:17 christos Exp $ */
/* $NetBSD: conf.c,v 1.5 2002/07/19 16:38:24 thorpej Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -272,7 +272,7 @@ struct cdevsw cdevsw[] = {
cdev_notdef(), /* 83: reserved */
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

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.75 2002/06/17 16:33:17 christos Exp $ */
/* $NetBSD: conf.c,v 1.76 2002/07/19 16:38:24 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -285,7 +285,7 @@ struct cdevsw cdevsw[] =
cdev_tty_init(NCLCD,cdtty), /* 124: Aurora multiport serial */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 125 clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 126: system call tracing */
cdev_clonemisc_init(1, systrace),/* 126: system call tracing */
#else
cdev_notdef(), /* 126: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.22 2002/06/17 16:33:18 christos Exp $ */
/* $NetBSD: conf.c,v 1.23 2002/07/19 16:38:24 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -285,7 +285,7 @@ struct cdevsw cdevsw[] =
cdev_tty_init(NCLCD,cdtty), /* 124: Cirrus-Logic CD18xx */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 125 clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 126: system call tracing */
cdev_clonemisc_init(1, systrace),/* 126: system call tracing */
#else
cdev_notdef(), /* 126: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.5 2002/06/17 16:33:19 christos Exp $ */
/* $NetBSD: conf.c,v 1.6 2002/07/19 16:38:25 thorpej Exp $ */
/*-
* Copyright (c) 1994 Adam Glass, Gordon W. Ross
@ -272,7 +272,7 @@ struct cdevsw cdevsw[] =
cdev_tty_init(NPCONS,pcons), /* 88: PROM console */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 89: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 90: system call tracing */
cdev_clonemisc_init(1, systrace),/* 90: system call tracing */
#else
cdev_notdef(), /* 90: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.67 2002/06/17 16:33:19 christos Exp $ */
/* $NetBSD: conf.c,v 1.68 2002/07/19 16:38:25 thorpej Exp $ */
/*-
* Copyright (c) 1994 Adam Glass, Gordon W. Ross
@ -294,7 +294,7 @@ struct cdevsw cdevsw[] =
cdev_svr4_net_init(NSVR4_NET,svr4_net), /* 83: svr4 net pseudo-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

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.58 2002/06/17 16:33:20 christos Exp $ */
/* $NetBSD: conf.c,v 1.59 2002/07/19 16:38:25 thorpej Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@ -483,7 +483,7 @@ struct cdevsw cdevsw[] =
cdev_mouse_init(NWSMUX, wsmux), /* 74: ws multiplexor */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 75: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 76: system call tracing */
cdev_clonemisc_init(1, systrace),/* 76: system call tracing */
#else
cdev_notdef(), /* 76: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.5 2002/07/10 13:44:02 simonb Exp $ */
/* $NetBSD: conf.c,v 1.6 2002/07/19 16:38:25 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -202,7 +202,7 @@ struct cdevsw cdevsw[] = {
cdev_isdntel_init(NISDNTEL, isdntel), /* 58: isdn phone device */
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

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.29 2002/06/17 16:33:20 christos Exp $ */
/* $NetBSD: conf.c,v 1.30 2002/07/19 16:38:26 thorpej Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -234,7 +234,7 @@ struct cdevsw cdevsw[] =
cdev_isdntel_init(NISDNTEL, isdntel), /* 47: isdn phone device */
cdev_clockctl_init(NCLOCKCTL, clockctl), /* 48: settimeofday driver */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 49: system call tracing */
cdev_clonemisc_init(1, systrace),/* 49: system call tracing */
#else
cdev_notdef(), /* 49: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.4 2002/06/17 16:33:21 christos Exp $ */
/* $NetBSD: conf.c,v 1.5 2002/07/19 16:38:26 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -334,7 +334,7 @@ struct cdevsw cdevsw[] =
cdev__oci_init(NMLX,mlx), /* 78: Mylex DAC960 control interface */
cdev_clockctl_init(NCLOCKCTL, clockctl),/* 79: clockctl pseudo device */
#ifdef SYSTRACE
cdev_systrace_init(1, systrace),/* 80: system call tracing */
cdev_clonemisc_init(1, systrace),/* 80: system call tracing */
#else
cdev_notdef(), /* 80: system call tracing */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.h,v 1.103 2002/06/18 05:30:40 thorpej Exp $ */
/* $NetBSD: conf.h,v 1.104 2002/07/19 16:38:14 thorpej Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -333,8 +333,8 @@ extern struct cdevsw cdevsw[];
dev_init(c,n,write), dev_init(c,n,ioctl), \
dev_noimpl(stop,enodev), 0, seltrue, dev_init(c,n,mmap) }
/* open, close, read, write, ioctl */
#define cdev_systrace_init(c,n) { \
/* open -- everything else handled by fileops */
#define cdev_clonemisc_init(c,n) { \
dev_init(c,n,open), dev_noimpl(close,enodev), \
dev_noimpl(read,enodev), dev_noimpl(write,enodev), \
dev_noimpl(ioctl,enodev), dev_noimpl(stop,enodev), \