---
name: "list_add_rcu"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/list_add_rcu"
---

# list\_add\_rcu(9)

add a new entry to rcu-protected list

## NAME

list\_add\_rcu - add a new entry to rcu-protected list

## SYNOPSIS

**void list\_add\_rcu(struct list\_head \*** *new***, struct list\_head \*** *head***);**

## ARGUMENTS

*new*

new entry to be added

*head*

list head to add it after

## DESCRIPTION

Insert a new entry after the specified head. This is good for implementing stacks.

The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as **list\_add\_rcu** or **list\_del\_rcu**, running on this same list. However, it is perfectly legal to run concurrently with the \_rcu list-traversal primitives, such as **list\_for\_each\_entry\_rcu**.

## COPYRIGHT
