MCPcopy Create free account
hub / github.com/apache/nuttx / rpmsg_port_remove_node

Function rpmsg_port_remove_node

drivers/rpmsg/rpmsg_port.c:110–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 ****************************************************************************/
109
110static FAR struct list_node *
111rpmsg_port_remove_node(FAR struct rpmsg_port_list_s *list)
112{
113 FAR struct list_node *node;
114 irqstate_t flags;
115
116 flags = spin_lock_irqsave(&list->lock);
117 node = list_remove_head(&list->head);
118 if (node != NULL)
119 {
120 list->num--;
121 }
122
123 spin_unlock_irqrestore(&list->lock, flags);
124 return node;
125}
126
127/****************************************************************************
128 * Name: rpmsg_port_destroy_queue

Calls 2

list_remove_headFunction · 0.85
spin_unlock_irqrestoreFunction · 0.85

Tested by

no test coverage detected