Index Index for
Section 9r
Index Alphabetical
listing for P
Bottom of page Bottom of
page

pullupmsg(9r)

NAME

pullupmsg - STREAMS: Concatenates bytes in a message

SYNOPSIS

#include <sys/stream.h> int pullupmsg( MBLKP message_block_ptr, int len );

ARGUMENTS

message_block_ptr 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 *. len 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)

Index Index for
Section 9r
Index Alphabetical
listing for P
Top of page Top of
page