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

NAME

6       disk_get_part - get partition
7

SYNOPSIS

9       struct hd_struct * disk_get_part(struct gendisk * disk, int partno);
10

ARGUMENTS

12       disk
13           disk to look partition from
14
15       partno
16           partition number
17

DESCRIPTION

19       Look for partition partno from disk. If found, increment reference
20       count and return it.
21

CONTEXT

23       Don't care.
24

RETURNS

26       Pointer to the found partition on success, NULL if not found.
27
29Kernel Hackers Manual 2.6.       November 2011                DISK_GET_PART(9)
Impressum