Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ put(9F) — SunOS 5.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

putctl(9F)

putctl1(9F)

putnext(9F)

qreply(9F)

put(9F)

NAME

put −  call a STREAMS put procedure

SYNOPSIS

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

void put(queue_t ∗q, mblk_t ∗mp);

ARGUMENTS

q Pointer to a STREAMS queue. 

mp Pointer to message block being passed into queue. 

INTERFACE LEVEL

Architecture independent level 1 (DDI/DKI). 

DESCRIPTION

put calls the put procedure ( put(9E) entry point) for the STREAMS queue specified by q, passing it the message block referred to by mp.  It is typically used by a driver or module to call its own put procedure. 

CONTEXT

put can be called from a STREAMS module or driver put or service routine, or from an associated interrupt handler, timeout, bufcall, or esballoc call-back.  In the latter cases the calling code must guarantee the validity of the q argument. 

Since put may cause re-entry of the module (as it is intended to do), mutexes or other locks should not be held across calls to it, due to the risk of single-party deadlock. 

NOTES

The caller cannot have the stream frozen (see freezestr(9F)) when calling this function. 

DDI/DKI conforming modules and drivers are no longer permitted to call put procedures directly, but must call through the appropriate STREAMS utility function (e.g.  put(9E), putnext(9F), putctl(9F), qreply(9F), etc).  This function is provided as a DDI/DKI conforming replacement for a direct call to a put procedure. 

SEE ALSO

put(D2DK), putctl(9F), putctl1(9F), putnext(9F), qreply(9F)

SunOS 5.2  —  Last change: 28 Apr 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026