---
name: "list_for_each_safe_rcu"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/list_for_each_safe_rcu"
---

# list\_for\_each\_safe\_rcu(9)

## NAME

list\_for\_each\_safe\_rcu -

## SYNOPSIS

**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.

## DESCRIPTION

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**.

## COPYRIGHT
