From owner-freebsd-arch Fri Mar 16 14:22:13 2001 Delivered-To: freebsd-arch@freebsd.org Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id 8065737B718; Fri, 16 Mar 2001 14:22:00 -0800 (PST) (envelope-from mjacob@feral.com) Received: from zeppo.feral.com (IDENT:mjacob@zeppo [192.67.166.71]) by feral.com (8.9.3/8.9.3) with ESMTP id OAA24494; Fri, 16 Mar 2001 14:22:02 -0800 Date: Fri, 16 Mar 2001 14:21:58 -0800 (PST) From: Matthew Jacob Reply-To: mjacob@feral.com To: John Baldwin Cc: arch@FreeBSD.ORG Subject: man pages In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 .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 .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