1 .\" Copyright (c) 2000, Sun Microsystems, Inc. All Rights Reserved.
2 .\" Copyright 1989 AT&T
3 .\" The contents of this file are subject to the terms of the
4 .\" Common Development and Distribution License (the "License").
5 .\" You may not use this file except in compliance with the License.
6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7 .\" or http://www.opensolaris.org/os/licensing.
8 .\" See the License for the specific language governing permissions and
9 .\" limitations under the License.
10 .\" When distributing Covered Code, include this CDDL HEADER in each file
11 .\" and include the License file at usr/src/OPENSOLARIS.LICENSE.
12 .\" If applicable, add the following below this CDDL HEADER, with the
13 .\" fields enclosed by brackets "[]" replaced with your own identifying
14 .\" information: Portions Copyright [yyyy] [name of copyright owner]
20 .Nd STREAMS queue processing procedures structure
24 .Sy Architecture independent level 1 (DDI/DKI)
28 structure contains pointers to processing procedures for a
32 structure for the module or driver contains
35 structure for both upstream and downstream processing.
39 structure includes the following members:
40 .Bd -literal -offset indent
42 typedef int (*qi_putp_t)(queue_t *, mblk_t *);
43 typedef int (*qi_srvp_t)(queue_t *);
44 typedef int (*qi_qopen_t)(queue_t *, dev_t *, int, int, cred_t *);
45 typedef int (*qi_qclose_t)(queue_t *, int, cred_t *);
46 typedef int (*qi_qadmin_t)(void);
47 typedef int (*qi_rwp_t)(queue_t *, struiod_t *);
48 typedef int (*qi_infop_t)(queue_t *, infod_t *);
51 qi_putp_t qi_putp; /* put procedure */
52 qi_srvp_t qi_srvp; /* service procedure */
53 qi_qopen_t qi_qopen; /* called on startup */
54 qi_qclose_t qi_qclose; /* called on finish */
55 qi_qadmin_t qi_qadmin; /* for future use */
56 struct module_info *qi_minfo; /* module information */
57 struct module_stat *qi_mstat; /* module statistics */
58 qi_rwp_t qi_rwp; /* r/w procedure */
59 qi_infop_t qi_infop; /* information procedure */
60 int qi_struiot; /* stream uio type for struio() */
67 .Xr Writing Device Drivers
69 .Xr STREAMS Programming Guide
71 This release includes no support for module statistics.