STREAMS-UX Programmer's Guide (February 2007)

Modules and Drivers
STREAMS Module
Chapter 4
94
*/
...
if (success) {
...
mp->b_datap->db_type = M_IOCACK;
} else {
...
mp->b_datap->db_type = M_IOCNAK;
}
qreply(q, mp);
return;
case MOD_IOCTL2:
...
...
/* ioctl commands not recognized by the module */
default:
/* Pass the ioctl message downstream */
putnext(q, mp);
return;
}
default:
/* Pass the message downstream if the module does not
* understand it.
*/
putq(q, mp);
return;
}
}