sunos man page for mcopymsg

Query: mcopymsg

OS: sunos

Section: 9f

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

mcopymsg(9F)						   Kernel Functions for Drivers 					      mcopymsg(9F)

NAME
mcopymsg - Copy message contents into a buffer
SYNOPSIS
#include <sys/stream.h> #include <sys/strsun.h> void mcopymsg(mblk_t *mp, void *buf);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
mp Message to be copied. buf Buffer in which to copy.
DESCRIPTION
The mcopymsg() function copies the contents of the specified message into the specified buffer. If the message consists of more than a sin- gle message block, the contents of each message block are placed consecutively into the buffer. The provided buffer must be large enough to accommodate the message. If the buffer is not large enough, the results are unspecified. The msgsize(9F) function can be used to calculate the total size of the message beforehand.
RETURN VALUES
None.
CONTEXT
This function can be called from user, kernel or interrupt context.
SEE ALSO
msgsize(9F) STREAMS Programming Guide SunOS 5.10 9 June 2004 mcopymsg(9F)
Related Man Pages
merror(9f) - sunos
mioc2ack(9f) - sunos
rmvb(9f) - sunos
mioc2ack(9f) - opensolaris
freeb(9f) - debian
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
UNIX fun stuff - echo and dc - obfuscate/garble a string sort of
How do I remove or hide SunOS version/release from remote login prompt?
Best performance UNIX just for HOST Virtualization?