xref: /illumos-gate/usr/src/man/man9s/qinit.9s (revision 9f17ecf0b8fdc59cfa903ceb6a96046b0f2d8201)
1c10c16deSRichard Lowe.\" Copyright (c) 2000, Sun Microsystems, Inc.  All Rights Reserved.
2c10c16deSRichard Lowe.\" Copyright 1989 AT&T
35e1743f0SToomas Soome.\" The contents of this file are subject to the terms of the
45e1743f0SToomas Soome.\" Common Development and Distribution License (the "License").
55e1743f0SToomas Soome.\" You may not use this file except in compliance with the License.
65e1743f0SToomas Soome.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
75e1743f0SToomas Soome.\" or http://www.opensolaris.org/os/licensing.
85e1743f0SToomas Soome.\" See the License for the specific language governing permissions and
95e1743f0SToomas Soome.\" limitations under the License.
105e1743f0SToomas Soome.\" When distributing Covered Code, include this CDDL HEADER in each file
115e1743f0SToomas Soome.\" and include the License file at usr/src/OPENSOLARIS.LICENSE.
125e1743f0SToomas Soome.\" If applicable, add the following below this CDDL HEADER, with the
135e1743f0SToomas Soome.\" fields enclosed by brackets "[]" replaced with your own identifying
145e1743f0SToomas Soome.\" information: Portions Copyright [yyyy] [name of copyright owner]
155e1743f0SToomas Soome.Dd Oct 17, 2018
165e1743f0SToomas Soome.Dt QINIT 9S
175e1743f0SToomas Soome.Os
185e1743f0SToomas Soome.Sh NAME
195e1743f0SToomas Soome.Nm qinit
205e1743f0SToomas Soome.Nd STREAMS queue processing procedures structure
215e1743f0SToomas Soome.Sh SYNOPSIS
225e1743f0SToomas Soome.In sys/stream.h
235e1743f0SToomas Soome.Sh INTERFACE LEVEL
245e1743f0SToomas Soome.Sy Architecture independent level 1 (DDI/DKI)
255e1743f0SToomas Soome.Sh DESCRIPTION
265e1743f0SToomas SoomeThe
275e1743f0SToomas Soome.Nm
285e1743f0SToomas Soomestructure contains pointers to processing procedures for a
295e1743f0SToomas Soome.Sy QUEUE .
305e1743f0SToomas SoomeThe
315e1743f0SToomas Soome.Sy streamtab
325e1743f0SToomas Soomestructure for the module or driver contains
335e1743f0SToomas Soomepointers to one
345e1743f0SToomas Soome.Xr queue 9S
355e1743f0SToomas Soomestructure for both upstream and downstream processing.
365e1743f0SToomas Soome.Sh STRUCTURE MEMBERS
375e1743f0SToomas SoomeThe
385e1743f0SToomas Soome.Nm
395e1743f0SToomas Soomestructure includes the following members:
405e1743f0SToomas Soome.Bd -literal -offset indent
41c10c16deSRichard Lowe
425e1743f0SToomas Soometypedef int (*qi_putp_t)(queue_t *, mblk_t *);
435e1743f0SToomas Soometypedef int (*qi_srvp_t)(queue_t *);
445e1743f0SToomas Soometypedef int (*qi_qopen_t)(queue_t *, dev_t *, int, int, cred_t *);
455e1743f0SToomas Soometypedef int (*qi_qclose_t)(queue_t *, int, cred_t *);
465e1743f0SToomas Soometypedef int (*qi_qadmin_t)(void);
475e1743f0SToomas Soometypedef int (*qi_rwp_t)(queue_t *, struiod_t *);
485e1743f0SToomas Soometypedef int (*qi_infop_t)(queue_t *, infod_t *);
495e1743f0SToomas Soome
505e1743f0SToomas Soomestruct qinit {
515e1743f0SToomas Soome    qi_putp_t       qi_putp;       /* put procedure */
525e1743f0SToomas Soome    qi_srvp_t       qi_srvp;       /* service procedure */
535e1743f0SToomas Soome    qi_qopen_t      qi_qopen;      /* called on startup */
545e1743f0SToomas Soome    qi_qclose_t     qi_qclose;     /* called on finish */
555e1743f0SToomas Soome    qi_qadmin_t     qi_qadmin;     /* for future use */
565e1743f0SToomas Soome    struct module_info *qi_minfo;  /* module information */
57c10c16deSRichard Lowe    struct module_stat *qi_mstat;  /* module statistics */
585e1743f0SToomas Soome    qi_rwp_t        qi_rwp;        /* r/w procedure */
595e1743f0SToomas Soome    qi_infop_t      qi_infop;      /* information procedure */
605e1743f0SToomas Soome    int             qi_struiot;    /* stream uio type for struio() */
615e1743f0SToomas Soome};
625e1743f0SToomas Soome.Ed
635e1743f0SToomas Soome.Sh SEE ALSO
645e1743f0SToomas Soome.Xr queue 9S ,
655e1743f0SToomas Soome.Xr streamtab 9S
665e1743f0SToomas Soome.Pp
67*9f17ecf0SPeter Tribble.%T Writing Device Drivers
685e1743f0SToomas Soome.Pp
69*9f17ecf0SPeter Tribble.%T STREAMS Programming Guide
705e1743f0SToomas Soome.Sh NOTES
71c10c16deSRichard LoweThis release includes no support for module statistics.
72