MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / pbuf_ref

Function pbuf_ref

components/net/lwip/lwip-2.1.2/src/core/pbuf.c:828–836  ·  view source on GitHub ↗

* @ingroup pbuf * Increment the reference count of the pbuf. * * @param p pbuf to increase reference counter of * */

Source from the content-addressed store, hash-verified

826 *
827 */
828void
829pbuf_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

Callers 12

pbuf_chainFunction · 0.70
tcp_seg_copyFunction · 0.70
nd6_queue_packetFunction · 0.50
ip6_fragFunction · 0.50
ip4_fragFunction · 0.50
etharp_queryFunction · 0.50
http_post_requestFunction · 0.50
http_parse_requestFunction · 0.50
emacps_sgsendFunction · 0.50
tivaif_transmitFunction · 0.50
FXmacMsgSgsendFunction · 0.50
FXmacSgsendFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected