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

Function pbuf_clen

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

* Count number of pbufs in a chain * * @param p first pbuf of chain * @return the number of pbufs in a chain */

Source from the content-addressed store, hash-verified

806 * @return the number of pbufs in a chain
807 */
808u16_t
809pbuf_clen(const struct pbuf *p)
810{
811 u16_t len;
812
813 len = 0;
814 while (p != NULL) {
815 ++len;
816 p = p->next;
817 }
818 return len;
819}
820
821/**
822 * @ingroup pbuf

Callers 13

netif_loop_outputFunction · 0.70
tcp_free_acked_segmentsFunction · 0.70
tcp_receiveFunction · 0.70
tcp_writeFunction · 0.70
tcp_split_unsent_segFunction · 0.70
tcp_enqueue_flagsFunction · 0.70
tcp_oos_pbuf_countFunction · 0.50
ip6_reassFunction · 0.50
ip4_reassFunction · 0.50
http_parse_requestFunction · 0.50

Calls

no outgoing calls

Tested by 1

tcp_oos_pbuf_countFunction · 0.40