linkb(D3)

linkb - concatenate two message blocks

As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.

NAME
     linkb - concatenate two message blocks

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

   Arguments
     mp1       Pointer to the message to which mp2 is to be added.

     mp2       Pointer to the message to be added.

DESCRIPTION
     linkb appends the message mp2 to the tail of message mp1.  The
     continuation pointer (b_cont) of the last message block in the first
     message is set to point to the second message:
     _________________________________________
             linkb(mp1, mp2);
         Before
                                After
                            ___




                        mp1
                      |
                      ______
                            |
                      ______
                      b_cont
                                    ___




                              b_cont
                              |
                              ______
                                    |
                              ______
                                        (0)
                                      |
                                      ______
                                            |
                                      ______
                                      b_cont
                                        mp2
        mp1
              b_cont
               (0)
              |
              ______
                    |
              ______
           ___




      |
      ______
            |
      ______
      b_cont
         b_cont
           mp2
           (0)
         |
         ______
               |
         ______
                     |












   Return Values
     None.

USAGE
   Level
     Base or Interrupt.

   Synchronization Constraints
     Does not sleep.

     Driver-defined basic locks, read/write locks, and sleep locks may be held
     across calls to this function.

REFERENCES
     msgb(D4), unlinkb(D3)