Unix and Linux Discussions Tagged with queue |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
10,724 |
UNIX and Linux Applications |
|
|
|
2 |
1,425 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
1,967 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
1,490 |
Shell Programming and Scripting |
|
|
|
6 |
9,331 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,443 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,839 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
9,595 |
IP Networking |
|
|
|
2 |
7,835 |
AIX |
|
|
|
4 |
35,968 |
Ubuntu |
|
|
|
0 |
3,492 |
Complex Event Processing RSS News |
|
|
|
2 |
10,240 |
Programming |
|
|
|
1 |
4,768 |
Linux |
|
|
|
0 |
3,173 |
Solaris BigAdmin RSS |
|
|
|
1 |
3,578 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
9,929 |
OS X (Apple) |
|
|
|
0 |
3,302 |
Shell Programming and Scripting |
|
|
|
1 |
11,096 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,264 |
HP-UX |
|
|
|
0 |
4,631 |
Linux |
|
|
|
0 |
3,143 |
AIX |
|
|
|
0 |
12,807 |
Shell Programming and Scripting |
|
|
|
1 |
6,058 |
AIX |
|
|
|
3 |
8,473 |
AIX |
|
|
|
2 |
7,123 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
7,350 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,729 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,385 |
IP Networking |
|
|
|
3 |
10,011 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,098 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
3 |
8,165 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,670 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,513 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
8,065 |
UNIX for Dummies Questions & Answers |
canput(9r) canput(9r)
NAME
canput - STREAMS: Tests for room in a message queue
SYNOPSIS
#include <sys/stream.h>
int canput(
queue_t *message_queue );
ARGUMENTS
Specifies a pointer to the message queue. The typedef queue_t is an alternate name for struct queue_entry *.
DESCRIPTION
The canput interface searches through the stream (starting at the message queue identified by the message_queue argument) until it finds a
queue that contains a service interface where the message can be enqueued or until it reaches the end of the stream. If canput finds a
service interface in a queue, it tests the queue to determine if there is space in the queue to accommodate a message. If the queue is
full, canput sets the q_flag member of the queue_entry structure pointer (the message queue) to the constant QWANTW to back-enable the
caller's service interface.
NOTES
You are responsible for both testing a queue with canput and not placing a message on the queue if canput fails.
RETURN VALUES
The canput interface returns a value of 1 if the message queue is not full. It returns the value zero(0) if the message queue is full.
SEE ALSO
Kernel Interfaces: bcanput(9r), putbq(9r), putnext(9r)
Programmer's Guide: STREAMS
canput(9r)