1. NAME

blk_alloc_devt - allocate a dev_t for a partition

2. SYNOPSIS

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

3. ARGUMENTS

part
    partition to allocate dev_t for

devt
    out parameter for resulting dev_t

4. DESCRIPTION

Allocate a dev_t for block device.

5. RETURNS

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

6. CONTEXT

Might sleep.

7. COPYRIGHT