blk_alloc_devt(9)

blk_alloc_devt9

Allocate a dev_t for a partition

Usage

int blk_alloc_devt(struct hd_struct * part, dev_t * devt);

Arguments

part

partition to allocate dev_t for

devt

out parameter for resulting dev_t

Overview

Allocate a dev_t for block device.

Return

0 on success, allocated dev_t is returned in *devt. -errno on failure.

Context

Might sleep.

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.