xref: /illumos-gate/usr/src/man/man9s/qinit.9s (revision d48be21240dfd051b689384ce2b23479d757f2d8)
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]
15.Dd Oct 17, 2018
16.Dt QINIT 9S
17.Os
18.Sh NAME
19.Nm qinit
20.Nd STREAMS queue processing procedures structure
21.Sh SYNOPSIS
22.In sys/stream.h
23.Sh INTERFACE LEVEL
24.Sy Architecture independent level 1 (DDI/DKI)
25.Sh DESCRIPTION
26The
27.Nm
28structure contains pointers to processing procedures for a
29.Sy QUEUE .
30The
31.Sy streamtab
32structure for the module or driver contains
33pointers to one
34.Xr queue 9S
35structure for both upstream and downstream processing.
36.Sh STRUCTURE MEMBERS
37The
38.Nm
39structure includes the following members:
40.Bd -literal -offset indent
41
42typedef int (*qi_putp_t)(queue_t *, mblk_t *);
43typedef int (*qi_srvp_t)(queue_t *);
44typedef int (*qi_qopen_t)(queue_t *, dev_t *, int, int, cred_t *);
45typedef int (*qi_qclose_t)(queue_t *, int, cred_t *);
46typedef int (*qi_qadmin_t)(void);
47typedef int (*qi_rwp_t)(queue_t *, struiod_t *);
48typedef int (*qi_infop_t)(queue_t *, infod_t *);
49
50struct qinit {
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() */
61};
62.Ed
63.Sh SEE ALSO
64.Xr queue 9S ,
65.Xr streamtab 9S
66.Pp
67.%T Writing Device Drivers
68.Pp
69.%T STREAMS Programming Guide
70.Sh NOTES
71This release includes no support for module statistics.
72