Unix and Linux Discussions Tagged with message |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
21,411 |
Shell Programming and Scripting |
|
|
|
3 |
7,008 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
8,422 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
22,941 |
Shell Programming and Scripting |
|
|
|
7 |
43,465 |
Solaris |
|
|
|
6 |
16,626 |
Solaris |
|
|
|
12 |
2,685 |
Shell Programming and Scripting |
|
|
|
1 |
2,830 |
Shell Programming and Scripting |
|
|
|
9 |
15,467 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
3,364 |
Shell Programming and Scripting |
|
|
|
1 |
2,467 |
UNIX for Dummies Questions & Answers |
|
|
|
26 |
6,649 |
Shell Programming and Scripting |
|
|
|
1 |
4,639 |
Programming |
|
|
|
3 |
2,034 |
Shell Programming and Scripting |
|
|
|
1 |
5,314 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,096 |
IT Security RSS |
|
|
|
2 |
10,422 |
Programming |
|
|
|
3 |
14,387 |
Programming |
|
|
|
0 |
2,592 |
Shell Programming and Scripting |
|
|
|
1 |
2,788 |
Shell Programming and Scripting |
|
|
|
1 |
5,256 |
Programming |
|
|
|
0 |
1,045 |
Software Releases - RSS News |
|
|
|
2 |
3,860 |
Solaris |
|
|
|
3 |
2,435 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
9,544 |
Solaris |
|
|
|
6 |
2,515 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
4 |
5,455 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,408 |
Solaris |
|
|
|
5 |
9,349 |
Solaris |
|
|
|
0 |
1,759 |
IT Security RSS |
|
|
|
0 |
4,467 |
Shell Programming and Scripting |
|
|
|
1 |
4,142 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
1 |
9,870 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
1 |
4,072 |
Linux |
|
|
|
2 |
1,945 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
5,176 |
Solaris |
|
|
|
0 |
1,649 |
Complex Event Processing RSS News |
|
|
|
2 |
2,375 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,486 |
Software Releases - RSS News |
|
|
|
0 |
4,499 |
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
unlinkb() 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, unlinkb() 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
unlinkb() can be called from user or interrupt 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.10 11 Apr 1991 unlinkb(9F)