1BLK_ALLOC_DEVT(9)                Block Devices               BLK_ALLOC_DEVT(9)
2
3
4

NAME

6       blk_alloc_devt - allocate a dev_t for a partition
7

SYNOPSIS

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

ARGUMENTS

12       part
13           partition to allocate dev_t for
14
15       devt
16           out parameter for resulting dev_t
17

DESCRIPTION

19       Allocate a dev_t for block device.
20

RETURNS

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

CONTEXT

25       Might sleep.
26
28Kernel Hackers Manual 3.10         June 2019                 BLK_ALLOC_DEVT(9)
Impressum