Unix and Linux Discussions Tagged with put |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
20,649 |
Programming |
|
|
|
0 |
963 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
5,962 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
5,318 |
Shell Programming and Scripting |
|
|
|
10 |
90,207 |
Shell Programming and Scripting |
|
|
|
5 |
1,411 |
UNIX for Beginners Questions & Answers |
|
|
|
12 |
4,264 |
Shell Programming and Scripting |
|
|
|
6 |
3,282 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,329 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
7,732 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,331 |
Shell Programming and Scripting |
|
|
|
1 |
887 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,109 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
4,246 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,067 |
Shell Programming and Scripting |
|
|
|
9 |
2,965 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
1,168 |
Shell Programming and Scripting |
|
|
|
2 |
1,630 |
Shell Programming and Scripting |
|
|
|
0 |
3,030 |
Shell Programming and Scripting |
|
|
|
1 |
2,646 |
Shell Programming and Scripting |
|
|
|
1 |
1,356 |
Shell Programming and Scripting |
|
|
|
4 |
6,282 |
Shell Programming and Scripting |
|
|
|
5 |
10,789 |
IP Networking |
|
|
|
2 |
27,272 |
Shell Programming and Scripting |
|
|
|
7 |
3,184 |
Shell Programming and Scripting |
|
|
|
0 |
830 |
Software Releases - RSS News |
|
|
|
2 |
6,449 |
Programming |
|
|
|
3 |
4,201 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,701 |
Solaris |
|
|
|
7 |
9,801 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,194 |
Shell Programming and Scripting |
|
|
|
4 |
2,648 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,208 |
Shell Programming and Scripting |
|
|
|
4 |
10,445 |
Shell Programming and Scripting |
|
|
|
3 |
3,364 |
Shell Programming and Scripting |
|
|
|
3 |
2,097 |
Shell Programming and Scripting |
|
|
|
3 |
9,061 |
Solaris |
|
|
|
0 |
2,123 |
UNIX and Linux RSS News |
|
|
|
8 |
3,810 |
Shell Programming and Scripting |
|
|
|
1 |
1,680 |
Shell Programming and Scripting |
put(9F) Kernel Functions for Drivers 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);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
q Pointer to a STREAMS queue.
mp Pointer to message block being passed into queue.
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 (put(9E), putnext(9F), putctl(9F), qreply(9F)). This function is provided as a DDI/DKI conforming
replacement for a direct call to a put procedure.
SEE ALSO
put(9E), freezestr(9F), putctl(9F), putctl1(9F), putnext(9F), putnextctl(9F), putnextctl1(9F), qprocson(9F), qreply(9F)
Writing Device Drivers
STREAMS Programming Guide
NOTES
The caller cannot have the stream frozen when calling this function. See freezestr(9F).
DDI/DKI conforming modules and drivers are no longer permitted to call put procedures directly, but must call through the appropriate
STREAMS utility function, for example, put(9E), putnext(9F), putctl(9F), and qreply(9F). This function is provided as a DDI/DKI conforming
replacement for a direct call to a put procedure.
The put() and putnext() functions should be called only after qprocson() is finished.
SunOS 5.10 28 Apr 1992 put(9F)