---
name: "hlist_add_after_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/hlist_add_after_rcu"
---

# hlist\_add\_after\_rcu(9)

## NAME

hlist\_add\_after\_rcu -

## SYNOPSIS

**void hlist\_add\_after\_rcu(struct hlist\_node \*** *prev***, struct hlist\_node \*** *n***);**

## ARGUMENTS

*prev*

the existing element to add the new element after.

*n*

the new element to add to the hash list.

## DESCRIPTION

Adds the specified element to the specified hlist after the specified node while permitting racing traversals.

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

## COPYRIGHT
