Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driverslinkb(9F)


NAME

 linkb - concatenate two message blocks

SYNOPSIS

 
#include <sys/stream.h>
void linkb(mblk_t *mp1, mblk_t *mp2);

INTERFACE LEVEL

 

Architecture independent level 1 (DDI/DKI).

PARAMETERS

 
mp1
The message to which mp2 is to be added. mblk_t is an instance of the msgb(9S) structure.
mp2
The message to be added.

DESCRIPTION

 

linkb() creates a new message by adding mp2 to the tail of mp1. The continuation pointer, b_cont, of mp1 is set to point to mp2.



 


linkb(mp1, mp2);

CONTEXT

 

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

EXAMPLES

 

See dupb(9F) for an example of using linkb().

SEE ALSO

 

dupb(9F), unlinkb(9F), msgb(9S)

Writing Device Drivers

STREAMS Programming Guide


SunOS 5.9Go To TopLast Changed 20 Jul 1994

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.