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

Function rt_slist_remove

include/rtservice.h:243–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243rt_inline rt_slist_t *rt_slist_remove(rt_slist_t *l, rt_slist_t *n)
244{
245 /* remove slist head */
246 struct rt_slist_node *node = l;
247 while (node->next && node->next != n) node = node->next;
248
249 /* remove node */
250 if (node->next != (rt_slist_t *)0)
251 {
252 node->next = node->next->next;
253 n->next = RT_NULL;
254 }
255
256 return l;
257}
258
259rt_inline rt_slist_t *rt_slist_first(rt_slist_t *l)
260{

Callers 15

rt_pm_device_unregisterFunction · 0.85
find_empty_blk_in_setFunction · 0.85
rt_link_frame_removeFunction · 0.85
rt_link_dev_readFunction · 0.85
ulog_tag_lvl_filter_setFunction · 0.85
ulog_backend_unregisterFunction · 0.85
epoll_ctl_delFunction · 0.85
epoll_doFunction · 0.85
signalfd_add_notifyFunction · 0.85
at_client_deInitFunction · 0.85
at_recvpkt_node_deleteFunction · 0.85
free_socketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected