| 108 | ****************************************************************************/ |
| 109 | |
| 110 | static FAR struct list_node * |
| 111 | rpmsg_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 |
no test coverage detected