xref: /titanic_51/usr/src/man/man9s/fmodsw.9s (revision 59596c01ca1b980a016d25670874f53e64c27ec0)
te
Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved.
Copyright 1989 AT&T
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]
FMODSW 9S "Nov 14, 2002"
NAME
fmodsw - STREAMS module declaration structure
SYNOPSIS

#include <sys/stream.h>
#include <sys/conf.h>
INTERFACE LEVEL

Solaris DDI specific (Solaris DDI)

DESCRIPTION

The fmodsw structure contains information for STREAMS modules. All STREAMS modules must define a fmodsw structure.

f_name must match mi_idname in the module_info structure. See module_info(9S). f_name should also match the module binary name. (See WARNINGS.)

All modules must set the f_flag to D_MP to indicate that they safely allow multiple threads of execution. See mt-streams(9F) for additional flags.

STRUCTURE MEMBERS
char f_name[FMNAMESZ + 1]; /* module name */
struct streamtab *f_str; /* streams information */
int f_flag; /* flags */
SEE ALSO

mt-streams(9F), modlstrmod(9S), module_info(9S)

STREAMS Programming Guide

WARNINGS

If f_name does not match the module binary name, unexpected failures can occur.