Unix and Linux Discussions Tagged with put |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
26,919 |
Programming |
|
|
|
0 |
2,605 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
8,883 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
7,969 |
Shell Programming and Scripting |
|
|
|
10 |
118,580 |
Shell Programming and Scripting |
|
|
|
5 |
3,036 |
UNIX for Beginners Questions & Answers |
|
|
|
12 |
7,845 |
Shell Programming and Scripting |
|
|
|
6 |
5,829 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,180 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
10,073 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,141 |
Shell Programming and Scripting |
|
|
|
1 |
1,641 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,052 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
7,129 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,387 |
Shell Programming and Scripting |
|
|
|
9 |
5,395 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
1,870 |
Shell Programming and Scripting |
|
|
|
2 |
3,113 |
Shell Programming and Scripting |
|
|
|
0 |
4,760 |
Shell Programming and Scripting |
|
|
|
1 |
3,352 |
Shell Programming and Scripting |
|
|
|
1 |
2,262 |
Shell Programming and Scripting |
|
|
|
4 |
7,465 |
Shell Programming and Scripting |
|
|
|
5 |
11,823 |
IP Networking |
|
|
|
2 |
28,001 |
Shell Programming and Scripting |
|
|
|
7 |
3,779 |
Shell Programming and Scripting |
|
|
|
0 |
1,459 |
Software Releases - RSS News |
|
|
|
2 |
8,941 |
Programming |
|
|
|
3 |
4,589 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,248 |
Solaris |
|
|
|
7 |
11,049 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,636 |
Shell Programming and Scripting |
|
|
|
4 |
3,129 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,777 |
Shell Programming and Scripting |
|
|
|
4 |
10,943 |
Shell Programming and Scripting |
|
|
|
3 |
3,874 |
Shell Programming and Scripting |
|
|
|
3 |
2,548 |
Shell Programming and Scripting |
|
|
|
3 |
9,622 |
Solaris |
|
|
|
0 |
2,525 |
UNIX and Linux RSS News |
|
|
|
8 |
4,477 |
Shell Programming and Scripting |
|
|
|
1 |
2,082 |
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.11 28 Apr 1992 put(9F)