DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5 and SCO OpenServer

mdi_macerrorack(D3mdi)


mdi_macerrorack -- allocate, fill in, and send a MAC_ERROR_ACK message

Syntax

   #include <sys/types.h>
   #include <sys/stream.h>
   #include <sys/mdi.h>
   #include <sys/ddi.h>
   

void mdi_macerrorack(queue_t *q, long error_primitive, int mac_error);

Description

mdi_macerrorack(D3mdi) allocates, fills in, and sends a MAC_ERROR_ACK(D7mdi) message.

Return Value

None.

Usage

This routine allocates STREAMS blocks at BPRI_HI. If no STREAMS blocks are available, it silently fails.

Example

       e3Ddev_t    *dev;
   

dev = (e3Ddev_t *)q->q_ptr; ASSERT(dev != NULL);

if (!dev->ex_up_queue) { mdi_macerrorack(RD(q), M_DATA, MAC_OUTSTATE); freemsg(mp); return; }

Context and synchronization

Interrupt contexts

Hardware applicability

All

Version applicability

mdi: 1, 2, 2.1

References

MAC_ERROR_ACK(D7mdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005