• Dipankar Sarma's avatar
    [PATCH] RCU helper patchset 2/2 · a0b6c9c1
    Dipankar Sarma authored
    This adds a set of list macros that make handling of list protected
    by RCU simpler. The interfaces added are -
    
    list_add_rcu
    list_add_tail_rcu
    	- Adds an element by taking care of memory barrier (wmb()).
    
    list_del_rcu
    	- Deletes an element but doesn't re-initialize the pointers in
    	  the element for supporting RCU based traversal.
    
    list_for_each_rcu
    __list_for_each_rcu
    	- Traversal of RCU protected list - takes care of memory barriers
    	  transparently.
    a0b6c9c1
list.h 8.77 KB