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

Function rt_list_len

include/rtservice.h:110–121  ·  view source on GitHub ↗

* @brief get the list length * @param l the list to get. */

Source from the content-addressed store, hash-verified

108 * @param l the list to get.
109 */
110rt_inline unsigned int rt_list_len(const rt_list_t *l)
111{
112 unsigned int len = 0;
113 const rt_list_t *p = l;
114 while (p->next != l)
115 {
116 p = p->next;
117 len ++;
118 }
119
120 return len;
121}
122
123/**
124 * @brief get the struct for this entry

Callers 11

list_semFunction · 0.85
list_eventFunction · 0.85
list_mutexFunction · 0.85
list_mailboxFunction · 0.85
list_msgqueueFunction · 0.85
_vendor_requestFunction · 0.85
pci_scan_bridge_extendFunction · 0.85
rt_hw_can_isrFunction · 0.85
list_irqFunction · 0.85
sem_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected