pullupmsg - STREAMS: Concatenates bytes in a message
#include <sys/stream.h>
int pullupmsg(
MBLKP message_block_ptr,
int len );
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.
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).
Upon successful completion, the pullupmsg interface
returns the value 1. On failure, it returns the value zero
(0).
Kernel Interfaces: allocb(9r)
pullupmsg(9r)
[ Back ] |