---
name: "list_replace_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_replace_rcu"
---

# list\_replace\_rcu(9)

replace old entry by new one

## NAME

list\_replace\_rcu - replace old entry by new one

## SYNOPSIS

**void list\_replace\_rcu(struct list\_head \*** *old***, struct list\_head \*** *new***);**

## ARGUMENTS

*old*

the element to be replaced

*new*

the new element to insert

## DESCRIPTION

The *old* entry will be replaced with the *new* entry atomically.

## NOTE

*old* should not be empty.

## COPYRIGHT
