sel_queue(9s)sel_queue(9s)NAME
sel_queue - General: Defines a queue of select events
SYNOPSIS ---------------------------------
Member Name Data Type
---------------------------------
links struct queue_entry
event struct event *
---------------------------------
MEMBERS
Specifies a queue_entry structure. This structure contains a generic doubly linked list (queue). Specifies a pointer to an event struc-
ture. This structure is an opaque structure; that is, you do not reference it in your kernel module.
DESCRIPTION
The sel_queue data structure provides kernel module writers with a generic queue of select events. You must initialize the links member by
calling the queue_init routine prior to using the select_enqueue and select_dequeue routines.
FILES SEE ALSO
Routines: select_dequeue(9r), select_enqueue(9r)sel_queue(9s)
Check Out this Related Man Page
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)
Hi Folks,
Today hasn't been the best one of my career in IT.
I've been a contractor for a major utility company for a number of years, on a number of seperate IT contracts mostly Unix. The company had 10 different flavours of unix and multiple different varsions of most of them.
At the... (3 Replies)