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

mdi_macokack(D3mdi)


mdi_macokack -- allocate, fill in, and send a MAC_OK_ACK message

Syntax

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

void mdi_macokack(queue_t *q, long correct_primitive);

Description

mdi_macokack( ) allocates, fills in, and sends a MAC_OK_ACK(D7mdi) message.

Arguments


q

correct_primitive

Return Value

None.

Usage

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

Example

       case MAC_BIND_REQ:
           if (dev->issuspended)
               mdi_macerrorack(RD(q), prim->mac_primitive, MAC_HWNOTAVAIL);
           if (dev->ex_up_queue)
               mdi_macerrorack(RD(q), prim->mac_primitive, MAC_OUTSTATE);
           else {
               dev->ex_up_queue = RD(q);
               dev->dlpi_cookie = prim->bind_req.mac_cookie;
               mdi_macokack(RD(q), prim->mac_primitive);
           }
           break;

Context and synchronization

Interrupt context

Hardware applicability

All

Version applicability

mdi: 1, 2, 2.1

References

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