* @ingroup pbuf * Increment the reference count of the pbuf. * * @param p pbuf to increase reference counter of * */
| 826 | * |
| 827 | */ |
| 828 | void |
| 829 | pbuf_ref(struct pbuf *p) |
| 830 | { |
| 831 | /* pbuf given? */ |
| 832 | if (p != NULL) { |
| 833 | SYS_ARCH_SET(p->ref, (LWIP_PBUF_REF_T)(p->ref + 1)); |
| 834 | LWIP_ASSERT("pbuf ref overflow", p->ref > 0); |
| 835 | } |
| 836 | } |
| 837 | |
| 838 | /** |
| 839 | * @ingroup pbuf |
no outgoing calls
no test coverage detected