1 '\" te
2 .\" Copyright (c) 2006, Sun Microsystems, Inc., All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH GET_PKTIOPB 9F "Jan 16, 2006"
7 .SH NAME
8 get_pktiopb, free_pktiopb \- allocate/free a SCSI packet in the iopb map
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/scsi/scsi.h>
13
14
15
16 \fBstruct scsi_pkt *\fR\fBget_pktiopb\fR(\fBstruct scsi_address *\fR\fIap\fR,
17 \fBcaddr_t *\fR\fIdatap\fR, \fBint\fR \fIcdblen\fR, \fBint\fR \fIstatuslen\fR, \fBint\fR \fIdatalen\fR,
18 \fBint\fR \fIreadflag\fR, \fBint (*\fR\fIcallback\fR);
19 .fi
20
21 .LP
22 .nf
23 \fBvoid\fR \fBfree_pktiopb\fR(\fBstruct scsi_pkt *\fR\fIpkt\fR, \fBcaddr_t\fR \fIdatap\fR, \fBint\fR \fIdatalen\fR);
24 .fi
25
26 .SH INTERFACE LEVEL
169 context.
170 .SH ATTRIBUTES
171 .sp
172 .LP
173 See \fBattributes\fR(5) for a description of the following attributes:
174 .sp
175
176 .sp
177 .TS
178 box;
179 c | c
180 l | l .
181 ATTRIBUTE TYPE ATTRIBUTE VALUE
182 _
183 Stability Level Obsolete
184 .TE
185
186 .SH SEE ALSO
187 .sp
188 .LP
189 \fBattributes\fR(5), \fBddi_iopb_alloc\fR(9F),
190 \fBscsi_alloc_consistent_buf\fR(9F), \fBscsi_free_consistent_buf\fR(9F),
191 \fBscsi_pktalloc\fR(9F), \fBscsi_resalloc\fR(9F), \fBscsi_pkt\fR(9S)
192 .sp
193 .LP
194 \fIWriting Device Drivers\fR
195 .SH NOTES
196 .sp
197 .LP
198 The \fBget_pktiopb()\fR and \fBfree_pktiopb()\fR functions are obsolete and
199 will be discontinued in a future release. These functions have been replaced
200 by, respectively, \fBscsi_alloc_consistent_buf\fR(9F) and
201 \fBscsi_free_consistent_buf\fR(9F).
202 .sp
203 .LP
204 The \fBget_pktiopb()\fR function uses scarce resources. For this reason and its
205 obsolescence (see above), its use is discouraged.
|
1 '\" te
2 .\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
3 .\" Copyright (c) 2006, Sun Microsystems, Inc., All Rights Reserved
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH GET_PKTIOPB 9F "May 24, 2014"
8 .SH NAME
9 get_pktiopb, free_pktiopb \- allocate/free a SCSI packet in the iopb map
10 .SH SYNOPSIS
11 .LP
12 .nf
13 #include <sys/scsi/scsi.h>
14
15
16
17 \fBstruct scsi_pkt *\fR\fBget_pktiopb\fR(\fBstruct scsi_address *\fR\fIap\fR,
18 \fBcaddr_t *\fR\fIdatap\fR, \fBint\fR \fIcdblen\fR, \fBint\fR \fIstatuslen\fR, \fBint\fR \fIdatalen\fR,
19 \fBint\fR \fIreadflag\fR, \fBint (*\fR\fIcallback\fR);
20 .fi
21
22 .LP
23 .nf
24 \fBvoid\fR \fBfree_pktiopb\fR(\fBstruct scsi_pkt *\fR\fIpkt\fR, \fBcaddr_t\fR \fIdatap\fR, \fBint\fR \fIdatalen\fR);
25 .fi
26
27 .SH INTERFACE LEVEL
170 context.
171 .SH ATTRIBUTES
172 .sp
173 .LP
174 See \fBattributes\fR(5) for a description of the following attributes:
175 .sp
176
177 .sp
178 .TS
179 box;
180 c | c
181 l | l .
182 ATTRIBUTE TYPE ATTRIBUTE VALUE
183 _
184 Stability Level Obsolete
185 .TE
186
187 .SH SEE ALSO
188 .sp
189 .LP
190 \fBattributes\fR(5),
191 \fBscsi_alloc_consistent_buf\fR(9F), \fBscsi_free_consistent_buf\fR(9F),
192 \fBscsi_pktalloc\fR(9F), \fBscsi_resalloc\fR(9F), \fBscsi_pkt\fR(9S)
193 .sp
194 .LP
195 \fIWriting Device Drivers\fR
196 .SH NOTES
197 .sp
198 .LP
199 The \fBget_pktiopb()\fR and \fBfree_pktiopb()\fR functions are obsolete and
200 will be discontinued in a future release. These functions have been replaced
201 by, respectively, \fBscsi_alloc_consistent_buf\fR(9F) and
202 \fBscsi_free_consistent_buf\fR(9F).
203 .sp
204 .LP
205 The \fBget_pktiopb()\fR function uses scarce resources. For this reason and its
206 obsolescence (see above), its use is discouraged.
|