182 |
* |
* |
183 |
* * PBUF_RAM: buffer memory for pbuf is allocated as one large |
* * PBUF_RAM: buffer memory for pbuf is allocated as one large |
184 |
* chunk. This includes protocol headers as well. |
* chunk. This includes protocol headers as well. |
185 |
* * RBUF_ROM: no buffer memory is allocated for the pbuf, even for |
* * PBUF_ROM: no buffer memory is allocated for the pbuf, even for |
186 |
* protocol headers. Additional headers must be prepended |
* protocol headers. Additional headers must be prepended |
187 |
* by allocating another pbuf and chain in to the front of |
* by allocating another pbuf and chain in to the front of |
188 |
* the ROM pbuf. |
* the ROM pbuf. |
189 |
* * PBUF_ROOL: the pbuf is allocated as a pbuf chain, with pbufs from |
* * PBUF_POOL: the pbuf is allocated as a pbuf chain, with pbufs from |
190 |
* the pbuf pool that is allocated during pbuf_init(). |
* the pbuf pool that is allocated during pbuf_init(). |
191 |
*/ |
*/ |
192 |
/*-----------------------------------------------------------------------------------*/ |
/*-----------------------------------------------------------------------------------*/ |
556 |
++(p->ref); |
++(p->ref); |
557 |
} |
} |
558 |
|
|
559 |
/*------------------------------------------------------------------------------ |
/*------------------------------------------------------------------------------*/ |
560 |
/* pbuf_ref_chain(): |
/* pbuf_ref_chain(): |
561 |
* |
* |
562 |
* Increments the reference count of all pbufs in a chain. |
* Increments the reference count of all pbufs in a chain. |