Removed garbage:

- bus_generic_map_intr.9.  This has been undead for more than 3 years
  following the changes in rev.1.4 of sys/bus.h.
- CONDSPLASSERT.9, SPLASSERT.9.  These have been undead since SMPng.
  They were even less useful than most section 9 man pages -- the
  interfaces described in them have never been used in the FreeBSD
  source tree.
This commit is contained in:
Bruce Evans 2001-10-04 09:46:01 +00:00
parent c042007e14
commit f350e13c63
4 changed files with 2 additions and 286 deletions

View file

@ -1,116 +0,0 @@
.\" Copyright (c) 2000 Jeroen Ruigrok van der Werven,
.\" Jonathan M. Bresler
.\"
.\" All rights reserved.
.\"
.\" This program is free software.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $FreeBSD$
.\"
.Dd March 19, 2000
.Os
.Dt CONDSPLASSERT 9
.Sh NAME
.Nm CONDSPLASSERT
.Nd conditional kernel spl level verification macro
.Sh SYNOPSIS
.Cd options INVARIANTS
.Cd options INVARIANT_SUPPORT
.Fn CONDSPLASSERT condition level "const char *msg"
.Sh DESCRIPTION
.Bf -symbolic
This API is deprecated.
Use mutexes to protect data structures instead.
See
.Xr mutex 9
for more information.
.Ef
.Pp
In a kernel compiled with both "options INVARIANTS"
and "options INVARIANT_SUPPORT",
the
.Fn CONDSPLASSERT
macro compares the current spl level of the kernel with the spl
.Fa level
specified in the macro
.Fn CONDSPLASSERT
if the specified condition is met.
If the specified
.Fa level
is not active
.Fn CONDSPLASSERT
calls the
.Fn KASSERT
macro with the
.Fa msg ,
terminating the running system.
.Pp
In a kernel that does not have both "options INVARIANTS"
and "options INVARIANT_SUPPORT",
the
.Fn CONDSPLASSERT
macro is defined to be a no-op.
.Pp
The behaviour of
.Fn CONDSPLASSERT
is tunable by means of the
.Xr sysctl 8
knob kern.splassertmode.
When set to 0 the
.Fn CONDSPLASSERT
macro is defined to be a no-op.
When set to 1 the
.Fn CONDSPLASSERT
macro is defined to log information to the console.
When set to 2 the
.Fn CONDSPLASSERT
macro is defined to
.Xr panic 9 .
.Sh EXAMPLES
The kernel function
.Fn swp_pager_meta_build
must be called
.Fn splvm
and has to match a certain object type:
.Bd -literal -offset indent
CONDSPLASSERT(object->type == OBJT_SWAP, vm,
"swp_pager_meta_build");
if (object->type != OBJT_SWAP) {
object->type = OBJT_SWAP;
object->un_pager.swp.swp_bcount = 0;
.Ed
.Sh SEE ALSO
.Xr config 8 ,
.Xr KASSERT 9 ,
.Xr panic 9 ,
.Xr SPLASSERT 9
.Sh AUTHORS
.An -nosplit
This manual page was written by
.An Jeroen Ruigrok van der Werven
.Aq asmodai@FreeBSD.org ,
based on the
.Xr SPLASSERT 9
manpage by
.An Jonathan M. Bresler
.Aq jmb@FreeBSD.org .

View file

@ -3,13 +3,12 @@
MAN= BUF_LOCK.9 BUF_LOCKFREE.9 BUF_LOCKINIT.9 BUF_REFCNT.9 \
BUF_TIMELOCK.9 BUF_UNLOCK.9 BUS_PRINT_CHILD.9 BUS_READ_IVAR.9 \
BUS_SETUP_INTR.9 \
CONDSPLASSERT.9 \
DECLARE_MODULE.9 DELAY.9 DEVICE_ATTACH.9 DEVICE_DETACH.9 \
DEVICE_IDENTIFY.9 DEVICE_PROBE.9 DEVICE_SHUTDOWN.9 \
DEV_MODULE.9 DRIVER_MODULE.9 \
KASSERT.9 \
MD5.9 MODULE_DEPEND.9 MODULE_VERSION.9 \
SPLASSERT.9 SYSCALL_MODULE.9 \
SYSCALL_MODULE.9 \
VFS.9 VFS_CHECKEXP.9 VFS_FHTOVP.9 VFS_INIT.9 VFS_MOUNT.9 \
VFS_QUOTACTL.9 VFS_ROOT.9 VFS_START.9 VFS_STATFS.9 \
VFS_SYNC.9 VFS_UNMOUNT.9 VFS_VGET.9 VFS_VPTOFH.9 VOP_ACCESS.9 \
@ -23,7 +22,7 @@ MAN= BUF_LOCK.9 BUF_LOCKFREE.9 BUF_LOCKINIT.9 BUF_REFCNT.9 \
accept_filter.9 accf_data.9 accf_http.9 acl.9 at_exit.9 \
at_fork.9 atomic.9 \
bios.9 boot.9 buf.9 bus_alloc_resource.9 bus_generic_attach.9 \
bus_generic_detach.9 bus_generic_map_intr.9 \
bus_generic_detach.9 \
bus_generic_print_child.9 bus_generic_read_ivar.9 \
bus_generic_shutdown.9 bus_release_resource.9 \
cd.9 cdevsw_add.9 cdevsw_remove.9 condvar.9 copy.9 \

View file

@ -1,111 +0,0 @@
.\" -*- nroff -*-
.\"
.\" Copyright (c) 2000 Jonathan M. Bresler
.\"
.\" All rights reserved.
.\"
.\" This program is free software.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $FreeBSD$
.\"
.Dd January 14, 2000
.Os
.Dt SPLASSERT 9
.Sh NAME
.Nm SPLASSERT
.Nd kernel spl level verification macro
.Sh SYNOPSIS
.Cd options INVARIANTS
.Cd options INVARIANT_SUPPORT
.Fn SPLASSERT level "const char *msg"
.Sh DESCRIPTION
.Bf -symbolic
This API is deprecated.
Use mutexes to protect data structures instead.
See
.Xr mutex 9
for more information.
.Ef
.Pp
In a kernel compiled with both "options INVARIANTS"
and "options INVARIANT_SUPPORT",
the
.Fn SPLASSERT
macro compares the current spl level of the kernel with the spl
.Fa level
specified in the macro
.Fn SPLASSERT .
If the specified
.Fa level
is not active
.Fn SPLASSERT
calls the
.Fn KASSERT
macro with the
.Fa msg ,
terminating the running system.
.Pp
In a kernel that does not have both "options INVARIANTS"
and "options INVARIANT_SUPPORT",
the
.Fn SPLASSERT
macro is defined to be a no-op.
.Pp
The behaviour of
.Fn SPLASSERT
is tunable by means of the
.Xr sysctl 8
knob kern.splassertmode.
When set to 0 the
.Fn SPLASSERT
macro is defined to be a no-op.
When set to 1 the
.Fn SPLASSERT
macro is defined to log information to the console.
When set to 2 the
.Fn SPLASSERT
macro is defined to
.Xr panic 9 .
.Sh EXAMPLES
The kernel function
.Fn rtalloc
must be called at
.Fn splnet :
.Bd -literal -offset indent
void
rtalloc(ro)
register struct route *ro;
{
SPLASSERT(net, "rtalloc()");
rtalloc_ign(ro, 0UL);
}
.Ed
.Sh SEE ALSO
.Xr config 8 ,
.Xr CONDSPLASSERT 9 ,
.Xr KASSERT 9 ,
.Xr panic 9
.Sh AUTHORS
This manual page was written by
.An Jonathan M. Bresler
.Aq jmb@FreeBSD.org .

View file

@ -1,56 +0,0 @@
.\" -*- nroff -*-
.\"
.\" Copyright (c) 1998 Doug Rabson
.\"
.\" All rights reserved.
.\"
.\" This program is free software.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $FreeBSD$
.\"
.Dd June 16, 1998
.Dt BUS_GENERIC_MAP_INTR 9
.Os
.Sh NAME
.Nm bus_generic_map_intr
.Nd generic implementation of
.Dv BUS_MAP_INTR
for busses
.Sh SYNOPSIS
.In sys/param.h
.In sys/bus.h
.Ft int
.Fn bus_generic_map_intr "device_t dev" "device_t child" "driver_intr_t *intr" "void *arg"
.Sh DESCRIPTION
This simple implementation of
.Xr BUS_MAP_INTR 9
just calls the method of
.Fa dev 's
parent.
.Sh RETURN VALUES
Zero is returned on success, otherwise an appropriate error is returned.
.Sh SEE ALSO
.Xr device 9
.Sh AUTHORS
This man page was written by
.An Doug Rabson .