Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2001 14:21:58 -0800 (PST)
From:      Matthew Jacob <mjacob@feral.com>
To:        John Baldwin <jhb@FreeBSD.ORG>
Cc:        arch@FreeBSD.ORG
Subject:   man pages
Message-ID:  <Pine.LNX.4.21.0103161420150.773-100000@zeppo.feral.com>
In-Reply-To: <XFMail.010316122152.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Actually, I think you only need disable_intr && restore_intr, which should be
paired over tight MD code sections, and yes, leaving it ambigious is desirable
IMO. 


.\" -*- nroff -*-
.\"
.\" Copyright (c) 2001 Farley Karbunkle
.\"
.\" 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 March 16, 2001
.Dt DISABLE_INTR 9
.Os FreeBSD
.Sh NAME
.Nm disable_intr
.Nd disable interrupts
for devices
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Ft intrmask_t
.Fn disable_intr "void"
.Sh DESCRIPTION
.Pp
This function disables interrupts and returns an interrupt mask to be used
in a later call to
.Xr restore_intr 9 .
.Pp
It is deliberately left undefined whether this disables interrupts
only on the calling CPU or whether this disables interrupts across
the entire system. Clearly it must be used with caution and does
not eliminate the need for appropriate locking.
.Sh RETURN VALUES
Returns a value to be later passed to
.Xr restore_intr 9 .
.Sh SEE ALSO
.Xr restore_intr 9
.Sh AUTHORS
.An  John Baldwin
and the FreeBSD project.

----------
.\" -*- nroff -*-
.\"
.\" Copyright (c) 2001 Farley Karbunkle
.\"
.\" 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 March 16, 2001
.Dt RESTORE_INTR 9
.Os FreeBSD
.Sh NAME
.Nm restore_intr
.Nd restore interrupts
from devices
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Ft void
.Fn restore_intr "intrmask_t"
.Sh DESCRIPTION
.Pp
This function restores the ability of devices to generate interrupts.
It takes an interrupt mask argument as returned by a previous call to
.Xr disable_intr 9 .
.Pp
It is deliberately left undefined whether this restores interrupts
only on the calling CPU or whether this disables interrupts across
the entire system. Clearly it must be used with caution and does
not eliminate the need for appropriate locking.
.Sh SEE ALSO
.Xr disable_intr 9
.Sh AUTHORS
.An  John Baldwin
and the FreeBSD project.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0103161420150.773-100000>