disk_get_part(9)

disk_get_part9

Get partition

Usage

struct hd_struct * disk_get_part(struct gendisk * disk, int partno);

Arguments

disk

disk to look partition from

partno

partition number

Overview

Look for partition partno from disk. If found, increment reference count and return it.

Context

Don't care.

Return

Pointer to the found partition on success, NULL if not found.

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.