list_replace_rcu(9)

list_replace_rcu9

Replace old entry by new one

Usage

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

Overview

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

Note

old should not be empty.

Releases

2 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0

From linux-manual-2.6.26 2.6.26-29 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.