linkb(9r)linkb(9r)NAME
linkb - STREAMS: Concatenates two message blocks
SYNOPSIS
#include <sys/stream.h>
void linkb(
MBLKP message,
MBLKP message_to_be_added );
ARGUMENTS
Specifies the message to which the message in message_to_be_added is to be added. The typedef MBLKP is an alternate name for typedef struct
msgb *. Specifies the message to be added. The typedef MBLKP is an alternate name for typedef struct msgb *.
DESCRIPTION
The linkb interface creates a new message by adding the message specified in the message_to_be_added argument to the tail of the message
specified in the message argument. The continuation pointer (the b_cont member of the msgb structure) of the first message is set to point
to the second message (the message_to_be_added argument).
RETURN VALUES
None
SEE ALSO
Kernel Interfaces: unlinkb(9r)
Programmer's Guide: STREAMS
linkb(9r)
Check Out this Related Man Page
putbq(9r)putbq(9r)NAME
putbq - STREAMS: Places a message at the head of a queue
SYNOPSIS
#include <sys/stream.h>
int putbq(
queue_t *queue_pointer,
MBLKP message_block_ptr );
ARGUMENTS
Specifies a pointer to the queue. The typedef queue_t is an alternate name for struct queue_entry *. Specifies a pointer to the message
block. The typedef MBLKP is an alternate name for typedef struct msgb *.
DESCRIPTION
The putbq interface places a message at the beginning of the appropriate section of the message queue. There are always sections for high
priority and ordinary messages. If other priority bands are used, each will have its own section of the queue, in priority band order,
after high priority messages and before ordinary messages. You can use putbq only for ordinary and priority band messages. High priority
messages are not subject to flow-control and thus cannot be put back on the queue.
Typically, you call putbq when the bcanput or canput interface determines that the message cannot be passed on to the next stream compo-
nent. The flow-control parameters are updated to reflect the change in the queue's status. If the QNOENB flag bit is not set, putbq enables
the service interface.
RETURN VALUES
Upon successful completion, putbq returns the value 1. On failure, it returns the value zero(0).
SEE ALSO
Kernel Interfaces: bcanput(9r), canput(9r), getq(9r), putq(9r)putbq(9r)