disk_expand_part_tbl(9)

disk_expand_part_tbl9

Expand disk->part_tbl

Usage

int disk_expand_part_tbl(struct gendisk * disk, int partno);

Arguments

disk

disk to expand part_tbl for

partno

expand such that this partno can fit in

Overview

Expand disk->part_tbl such that partno can fit in. disk->part_tbl uses RCU to allow unlocked dereferencing for stats and other stuff.

LOCKING: Matching bd_mutex locked, might sleep.

Return

0 on success, -errno on failure.

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.