idr_replace(9)

idr_replace9

Replace pointer for given id

Usage

void * idr_replace(struct idr * idp, void * ptr, int id);

Arguments

idp

idr handle

ptr

pointer you want associated with the id

id

lookup key

Overview

Replace the pointer registered with an id and return the old value. A -ENOENT return indicates that id was not found. A -EINVAL return indicates that id was not within valid constraints.

The caller must serialize with writers.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.