1BLK_ALLOC_DEVT(9) Block Devices BLK_ALLOC_DEVT(9)
23
4
NAME
6blk_alloc_devt - allocate a dev_t for a partition
7
SYNOPSIS
9int blk_alloc_devt(struct hd_struct * part, dev_t * devt);
10
ARGUMENTS
12part
13partition to allocate dev_t for
1415
devt
16out parameter for resulting dev_t
17
DESCRIPTION
19Allocate a dev_t for block device.
20
RETURNS
220 on success, allocated dev_t is returned in *devt. -errno on failure.
23
CONTEXT
25Might sleep.
26
COPYRIGHT
28Kernel Hackers Manual 3.10 June 2019 BLK_ALLOC_DEVT(9)