summaryrefslogtreecommitdiff
path: root/usr/src/man/man9f/mkiocb.9f
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man9f/mkiocb.9f')
-rw-r--r--usr/src/man/man9f/mkiocb.9f28
1 files changed, 3 insertions, 25 deletions
diff --git a/usr/src/man/man9f/mkiocb.9f b/usr/src/man/man9f/mkiocb.9f
index 35b207d995..3df49e13fe 100644
--- a/usr/src/man/man9f/mkiocb.9f
+++ b/usr/src/man/man9f/mkiocb.9f
@@ -3,7 +3,7 @@
.\" 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 mkiocb 9F "16 Jan 2006" "SunOS 5.11" "Kernel Functions for Drivers"
+.TH MKIOCB 9F "Jan 16, 2006"
.SH NAME
mkiocb \- allocates a STREAMS ioctl block for M_IOCTL messages in the kernel.
.SH SYNOPSIS
@@ -23,12 +23,10 @@ Solaris DDI specific (Solaris DDI).
.SH PARAMETERS
.sp
.ne 2
-.mk
.na
\fB\fIcommand\fR\fR
.ad
.RS 11n
-.rt
ioctl command for the \fBioc_cmd\fR field.
.RE
@@ -48,34 +46,28 @@ enough to hold any of the ioctl messages (\fBiocblk\fR(9S), \fBcopyreq\fR(9S)
or \fBcopyresp\fR(9S)), and has the following special properties:
.sp
.ne 2
-.mk
.na
\fB\fBb_wptr\fR\fR
.ad
.RS 20n
-.rt
Set to \fBb_rptr + sizeof(struct iocblk)\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBb_cont\fR\fR
.ad
.RS 20n
-.rt
Set to \fINULL.\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBb_datap->db_type\fR\fR
.ad
.RS 20n
-.rt
Set to \fBM_IOCTL\fR.
.RE
@@ -84,79 +76,65 @@ Set to \fBM_IOCTL\fR.
The fields in the iocblk structure are initialized as follows:
.sp
.ne 2
-.mk
.na
\fB\fBioc_cmd\fR\fR
.ad
.RS 13n
-.rt
Set to the command value passed in.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBioc_id\fR\fR
.ad
.RS 13n
-.rt
Set to a unique identifier.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBioc_cr\fR\fR
.ad
.RS 13n
-.rt
Set to point to a credential structure encoding the maximum system privilege
and which does not need to be freed in any fashion.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBioc_count\fR\fR
.ad
.RS 13n
-.rt
Set to 0.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBioc_rval\fR\fR
.ad
.RS 13n
-.rt
Set to 0.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBioc_error\fR\fR
.ad
.RS 13n
-.rt
Set to 0.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBioc_flags\fR\fR
.ad
.RS 13n
-.rt
Set to \fBIOC_NATIVE\fR to reflect that this is native to the running kernel.
.RE
@@ -213,7 +191,7 @@ before processing.
.sp
.in +2
.nf
-
+
1 test_lrsrv(queue_t *q)
2 {
3 ...
@@ -246,7 +224,7 @@ is available.
.sp
.in +2
.nf
-1 test_open(queue_t *q, dev_t devp, int oflag, int sflag,
+1 test_open(queue_t *q, dev_t devp, int oflag, int sflag,
cred_t *credp)
2 {
3 while ((mp = mkiocb(TEST_IOCTL)) == NULL) {