src/slist.h
static inline void
slist_rcu_insert_tail(struct slist *list, struct slist_node *node)
{
    node->next = NULL;

    if (slist_empty(list)) {
        rcu_store_ptr(list->first, node);
    } else {
        rcu_store_ptr(list->last->next, node);
    }

    list->last = node;
}
/*
 * Insert a node at the tail of a list.
 */
Insert a node at the tail of a list.
Insert a node at the tail of a list .
static inline void
slist_rcu_insert_tail(struct slist *list, struct slist_node *node)
{
    node->next = NULL;
    if (slist_empty(list)) {
        rcu_store_ptr(list->first, node);
    } else {
        rcu_store_ptr(list->last->next, node);
    }
    list->last = node;
}
static inline void slist_rcu_insert_tail ( struct slist * list , struct slist_node * node ) { node -> next = NULL ; if ( slist_empty ( list ) ) { rcu_store_ptr ( list -> first , node ) ; } else { rcu_store_ptr ( list -> last -> next , node ) ; } list -> last = node ; }
Insert a node at the tail of a list.
Insert a node at the tail of a list .