list_for_each_safe_rcu(9)

list_for_each_safe_rcu9

Usage

list_for_each_safe_rcu(pos, n, head);

Arguments

pos

the &struct list_head to use as a loop cursor.

n

another &struct list_head to use as temporary storage

head

the head for your list.

Overview

Iterate over an rcu-protected list, safe against removal of list entry.

This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu as long as the traversal is guarded by rcu_read_lock.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Also shipped by linux-manual-2.6.24. Parsed by carta from the page's man source.