pMblk->pClBlk->clSize in Vxsim - VxWorks

This is a discussion on pMblk->pClBlk->clSize in Vxsim - VxWorks ; Hi, Any idea on hw is or where is pMblk->pClBlk->clSize i.e cluste size of PMlk data set in vxsim environment. Thanks in advance, AK...

+ Reply to Thread
Results 1 to 3 of 3

Thread: pMblk->pClBlk->clSize in Vxsim

  1. pMblk->pClBlk->clSize in Vxsim

    Hi,

    Any idea on hw is or where is pMblk->pClBlk->clSize i.e cluste size of
    PMlk data set in vxsim environment.

    Thanks in advance,
    AK

  2. Re: pMblk->pClBlk->clSize in Vxsim

    On May 30, 7:56 am, Akshatha wrote:
    > Hi,
    >
    > Any idea on hw is or where is pMblk->pClBlk->clSize i.e cluste size of
    > PMlk data set in vxsim environment.
    >
    > Thanks in advance,
    > AK



    clSize is set when you call netPoolInit() or netPoolCreate() to set up
    a buffer pool. You allocate memory for your clusters and tell
    netPoolInit()/netPoolCreatre() the size, and the pool is created with
    buffers of that size. When you do a netTupleGet(), the clSize is set
    to match the size of the cluster attached to the mBlk.

    So find the fool from which the mBlk was allocated, the find who
    created it, and you'll see where the size is set.

    (Note: a single pool may have multiple cluster sizes in it.)

    -Bill

  3. Re: pMblk->pClBlk->clSize in Vxsim

    creat it as the space your certain module used only,so it can avoid to
    malloc from the system pool, which could increase the burden of CPU.

    --
    Message posted using http://www.talkaboutcomputing.com/gr...mp.os.vxworks/
    More information at http://www.talkaboutcomputing.com/faq.html


+ Reply to Thread