bdget_disk (9) - Linux Manuals

bdget_disk: do bdget by gendisk and partition number

NAME

bdget_disk - do bdget by gendisk and partition number

SYNOPSIS

struct block_device * bdget_disk(struct gendisk disk, int partno);

ARGUMENTS

disk

gendisk of interest

partno

partition number

DESCRIPTION

Find partition partno from disk, do bdget on it.

CONTEXT

Don't care.

RETURN

Resulting block_device on success, NULL on failure.

COPYRIGHT