summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@fingolfin.org>2021-01-16 12:14:21 -0800
committerRobert Mustacchi <rm@fingolfin.org>2021-01-25 07:30:51 -0800
commitdca2b4edbfdf8b595d031a5a2e7eaf98738f5055 (patch)
tree099bd24353d5dcf09da9eaeb95277e71cca5a1a3
parent231216303cc2106896aa2c2d6c25a0da912f7593 (diff)
downloadillumos-joyent-dca2b4edbfdf8b595d031a5a2e7eaf98738f5055.tar.gz
5750 ddi_ffs(9f)/ddi_fls(9f) are 64-bit aware
Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Gordon Ross <gordon.w.ross@gmail.com>
-rw-r--r--usr/src/man/man9f/ddi_ffs.9f21
1 files changed, 5 insertions, 16 deletions
diff --git a/usr/src/man/man9f/ddi_ffs.9f b/usr/src/man/man9f/ddi_ffs.9f
index afd1e13dbd..3c9172edc9 100644
--- a/usr/src/man/man9f/ddi_ffs.9f
+++ b/usr/src/man/man9f/ddi_ffs.9f
@@ -3,11 +3,10 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH DDI_FFS 9F "Jun 5, 2013"
+.TH DDI_FFS 9F "Jan 16, 2021"
.SH NAME
ddi_ffs, ddi_fls \- find first (last) bit set in a long integer
.SH SYNOPSIS
-.LP
.nf
#include <sys/conf.h>
#include <sys/ddi.h>
@@ -24,28 +23,22 @@ ddi_ffs, ddi_fls \- find first (last) bit set in a long integer
.fi
.SH INTERFACE LEVEL
-.sp
-.LP
Solaris DDI specific (Solaris DDI).
.SH PARAMETERS
-.sp
.ne 2
.na
\fB\fImask\fR\fR
.ad
.RS 8n
-A 32-bit argument value to search through.
+A 64-bit argument value to search through.
.RE
.SH DESCRIPTION
-.sp
-.LP
The function \fBddi_ffs()\fR takes its argument and returns the shift count
that the first (least significant) bit set in the argument corresponds to. The
function \fBddi_fls()\fR does the same, only it returns the shift count for the
last (most significant) bit set in the argument.
.SH RETURN VALUES
-.sp
.ne 2
.na
\fB\fB0\fR\fR
@@ -60,17 +53,13 @@ No bits are set in mask.
\fB\fIN\fR\fR
.ad
.RS 5n
-Bit \fIN\fR is the least significant (\fBddi_ffs\fR) or most significant
-(\fBddi_fls\fR) bit set in mask. Bits are numbered from \fB1\fR to \fB32\fR,
-with bit \fB1\fR being the least significant bit position and bit \fB32\fR the
+Bit \fIN\fR is the least significant (\fBddi_ffs\fR) or most significant
+(\fBddi_fls\fR) bit set in mask. Bits are numbered from \fB1\fR to \fB64\fR,
+with bit \fB1\fR being the least significant bit position and bit \fB64\fR the
most significant position.
.RE
.SH CONTEXT
-.sp
-.LP
This function can be called from user, interrupt, or kernel context.
.SH SEE ALSO
-.sp
-.LP
\fIWriting Device Drivers\fR