initialize an MDI MP-aware lock structure
mdi_tx_if_t * txint,
void * handle,
function initializes an MDI MP-aware
The caller provides pointers to the data and routines used by the
This registration routine is called from the driver's
pointer to an mdi_tx_if_t structure,
which the driver declares as part of its per-device structure.
This registration routine
initializes this structure using the remaining parameters.
pointer to a function with prototype:
void * (*tx_avail)(void * handle);
This routine is called with a single argument,
handle, (described below)
and must return non-zero if transmit resources are available,
zero if not.
is a pointer to a function with prototype:
void (*process_msg)(void * handle, mblk_t * mp);
This routine accepts two arguments,
handle (described below)
and mp, a pointer to
a transmit request STREAMS data message.
This routine commits the request to the adapter,
and can assume that at most one instance of it
is active at any given time. That is, the process_msg
function is single-threaded.
pointer to a device-specific data structure required by the driver
to identify a particular device
(usually the device-table pointer)
Indicates whether the driver is multithreaded.
Valid values are:
Driver is not multithreaded but will run on
the primary CPU on a multiprocessor system.
Driver is multithreaded.
Drivers that set this flag must use one of the
(such as 7mp or 8mp).
Otherwise, it returns a non-zero value from those documented
This function is typically called from the MDI driver's
(DDI 8) or
(DDI 7) entry point routine to initialize
the MP-aware lock structure
and populate the members of the mdi_tx_if structure
as much as possible.
Drivers that call this function
must set the D_MP flag in their
structure (DDI 8)
variable (DDI 7)
Context and synchronization
Differences between versions
This function is not supported on SCO OpenServer systems, where
similar functionality is provided by the
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005