1BDGET_DISK(9) Block Devices BDGET_DISK(9)
23
4
NAME
6bdget_disk - do bdget by gendisk and partition number
7
SYNOPSIS
9struct block_device * bdget_disk(struct gendisk * disk, int partno);
10
ARGUMENTS
12disk
13gendisk of interest
1415
partno
16partition number
17
DESCRIPTION
19Find partition partno from disk, do bdget on it.
20
CONTEXT
22Don't care.
23
RETURNS
25Resulting block_device on success, NULL on failure.
26
COPYRIGHT
28Kernel Hackers Manual 2.6. November 2011 BDGET_DISK(9)