Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

copyb(9F)

copymsg(9F)

dupb(9F)

dupmsg(9F)

NAME

dupmsg − duplicate a message

SYNOPSIS

#include <sys/stream.h>
mblk_t ∗dupmsg(mblk_t ∗mp);

ARGUMENTS

mp Pointer to the message. 

INTERFACE LEVEL

Architecture independent level 1 (DDI/DKI). 

DESCRIPTION

dupmsg() forms a new message by copying the message block descriptors pointed to by mp and linking them.  dupb(9F) is called for each message block.  The data blocks themselves are not duplicated. 

RETURN VALUES

If successful, dupmsg() returns a pointer to the new message block.  Otherwise, it returns a NULL pointer. 

CONTEXT

dupmsg() can be called from user or interrupt context. 

EXAMPLE

See copyb(9F) for an example using dupmsg(). 

SEE ALSO

copyb(9F), copymsg(9F), dupb(9F)

SunOS 5.3 Writing Device Drivers
SunOS 5.3 STREAMS Programmer’s Guide

Sun Microsystems  —  Last change: 11 Apr 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026