[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Communications, Volume 2

dupmsg Utility

Purpose

Duplicates a message.

Syntax


mblk_t *
dupmsg(bp)
register mblk_t * bp;

Description

The dupmsg utility calls the dupb utility to duplicate the message pointed to by the bp parameter by copying all individual message block descriptors and then linking the new message blocks to form the new message. The dupmsg utility does not copy data buffers, only message-block descriptors.

This utility is part of STREAMS Kernel Extensions.

Parameters

bp Specifies the message to be copied.

Return Values

On successful completion, the dupmsg utility returns a pointer to the new message. Otherwise, it returns a null pointer.

Related Information

The dupb utility.

List of Streams Programming References and Understanding STREAMS Messages in AIX 5L Version 5.2 Communications Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]