mblk_t *msgpullup(mblk_t *mp, int len);
Architecture independent level 1 (DDI/DKI).
msgpullup() concatenates and aligns the first len data bytes of the message pointed to by mp, copying the data into a new message. Any remaining bytes in the remaining message blocks will be copied and linked onto the new message. The original message is unaltered. If len equals -1, all data are concatenated. If len bytes of the same message type cannot be found, msgpullup() fails and returns NULL.
On success, a pointer to the new message is returned; on failure, NULL is returned.
msgpullup() can be called from user or interrupt context.
msgpullup() is a DKI-complaint replacement for the older pullupmsg.9f routine. Users are strongly encouraged to use msgpullup() instead of of pullupmsg.9f
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97