Something about the M_BLK structure - VxWorks

This is a discussion on Something about the M_BLK structure - VxWorks ; My questions are : Question 1: In the M_BLK structure, what is the difference between mBlkHdr->mData and pClBlk->clNode.pClBuf? What is pClBlk->clNode.pClBuf refer to? Question 2: Is the packet or the Ethernet frame loaded in mBlkHdr->mData or pClBlk->clNode.pClBuf? What is mBlkHdr->mData ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Something about the M_BLK structure

  1. Something about the M_BLK structure

    My questions are :

    Question 1: In the M_BLK structure, what is the difference between
    mBlkHdr->mData and pClBlk->clNode.pClBuf? What is
    pClBlk->clNode.pClBuf refer to?
    Question 2: Is the packet or the Ethernet frame loaded in
    mBlkHdr->mData or pClBlk->clNode.pClBuf? What is mBlkHdr->mData used
    to ?


  2. Re: Something about the M_BLK structure

    mData generally points to pClBuf, unless you want to save urself from
    the alignment issues on certain systems.. in which case mData could be
    pClBuf + 2 or something.

    Also note that each cluster has a reference count associated... so
    there can be multiple mData referring to the same cluster.


+ Reply to Thread