Unix and Linux Discussions Tagged with message |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
15,953 |
Shell Programming and Scripting |
|
|
|
3 |
4,812 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
6,122 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
19,421 |
Shell Programming and Scripting |
|
|
|
7 |
30,161 |
Solaris |
|
|
|
6 |
15,480 |
Solaris |
|
|
|
12 |
2,181 |
Shell Programming and Scripting |
|
|
|
1 |
2,196 |
Shell Programming and Scripting |
|
|
|
9 |
14,266 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
2,998 |
Shell Programming and Scripting |
|
|
|
1 |
2,080 |
UNIX for Dummies Questions & Answers |
|
|
|
26 |
5,870 |
Shell Programming and Scripting |
|
|
|
1 |
3,949 |
Programming |
|
|
|
3 |
1,900 |
Shell Programming and Scripting |
|
|
|
1 |
5,054 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,850 |
IT Security RSS |
|
|
|
2 |
9,532 |
Programming |
|
|
|
3 |
12,737 |
Programming |
|
|
|
0 |
2,395 |
Shell Programming and Scripting |
|
|
|
1 |
2,550 |
Shell Programming and Scripting |
|
|
|
1 |
4,743 |
Programming |
|
|
|
0 |
797 |
Software Releases - RSS News |
|
|
|
2 |
3,730 |
Solaris |
|
|
|
3 |
2,225 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
9,036 |
Solaris |
|
|
|
6 |
2,281 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
4 |
5,110 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,155 |
Solaris |
|
|
|
5 |
9,127 |
Solaris |
|
|
|
0 |
1,579 |
IT Security RSS |
|
|
|
0 |
4,267 |
Shell Programming and Scripting |
|
|
|
1 |
3,893 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
1 |
9,646 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
1 |
3,603 |
Linux |
|
|
|
2 |
1,737 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,907 |
Solaris |
|
|
|
0 |
1,507 |
Complex Event Processing RSS News |
|
|
|
2 |
2,129 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,082 |
Software Releases - RSS News |
|
|
|
0 |
3,613 |
SCO |
unlinkb(9F) Kernel Functions for Drivers unlinkb(9F)
NAME
unlinkb - remove a message block from the head of a message
SYNOPSIS
#include <sys/stream.h>
mblk_t *unlinkb(mblk_t *mp);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
mp Pointer to the message.
DESCRIPTION
The unlinkb() function removes the first message block from the message pointed to by mp. A new message, minus the removed message block,
is returned.
RETURN VALUES
If successful, the unlinkb() function returns a pointer to the message with the first message block removed. If there is only one message
block in the message, NULL is returned.
CONTEXT
The unlinkb() function can be called from user, interrupt, or kernel context.
EXAMPLES
Example 1 unlinkb() example
The routine expects to get passed an M_PROTO T_DATA_IND message. It will remove and free the M_PROTO header and return the remaining
M_DATA portion of the message.
1 mblk_t *
2 makedata(mp)
3 mblk_t *mp;
4 {
5 mblk_t *nmp;
6
7 nmp = unlinkb(mp);
8 freeb(mp);
9 return(nmp);
10 }
SEE ALSO
linkb(9F)
Writing Device Drivers
STREAMS Programming Guide
SunOS 5.11 16 Jan 2006 unlinkb(9F)