disk_replace_part_tbl(9)

disk_replace_part_tbl9

Replace disk->part_tbl in rcu-safe way

Usage

void disk_replace_part_tbl(struct gendisk * disk, struct disk_part_tbl * new_ptbl);

Arguments

disk

disk to replace part_tbl for

new_ptbl

new part_tbl to install

Overview

Replace disk->part_tbl with new_ptbl in RCU-safe way. The original ptbl is freed using RCU callback.

LOCKING: Matching bd_mutx locked.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

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