pullupmsg(9r)pullupmsg(9r)NAMEpullupmsg - STREAMS: Concatenates bytes in a message
SYNOPSIS
#include <sys/stream.h>
int pullupmsg(
MBLKP message_block_ptr,
int len );
ARGUMENTS
Specifies a pointer to the message block whose associated data blocks
are to be concatenated. The typedef MBLKP is an alternate name for
typedef struct msgb *. Specifies the number of bytes to concatenate.
DESCRIPTION
The pullupmsg interface tries to combine multiple data blocks into a
single block. The interface concatenates and aligns the first len data
bytes of the message pointed to by the message_block_ptr argument. If
len equals the value -1, pullupmsg concatenates all data. If len bytes
of the same message type cannot be found, pullupmsg fails and returns
the value zero (0).
RETURN VALUES
Upon successful completion, the pullupmsg interface returns the value
1. On failure, it returns the value zero (0).
SEE ALSO
Kernel Interfaces: allocb(9r)pullupmsg(9r)