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

Technical Reference: Communications, Volume 2

copymsg Utility

Purpose

Copies a message.

Syntax


mblk_t *
copymsg(bp)
register mblk_t * bp;

Description

The copymsg utility uses the copyb utility to copy the message blocks contained in the message pointed to by the bp parameter to newly allocated message blocks. It then links the new message blocks to form the new message.

This utility is part of STREAMS Kernel Extensions.

Parameters

bp Contains a pointer to the message to be copied.

Return Values

On successful compilation, the copymsg utility returns a pointer to the new message. Otherwise, it returns a null value.

Related Information

The copyb 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 ]