1DISK_GET_PART(9) Block Devices DISK_GET_PART(9)
23
4
NAME
6disk_get_part - get partition
7
SYNOPSIS
9struct hd_struct * disk_get_part(struct gendisk * disk, int partno);
10
ARGUMENTS
12disk
13disk to look partition from
1415
partno
16partition number
17
DESCRIPTION
19Look for partition partno from disk. If found, increment reference
20count and return it.
21
CONTEXT
23DonĀ“t care.
24
RETURNS
26Pointer to the found partition on success, NULL if not found.
27
COPYRIGHT
29Kernel Hackers Manual 2.6. June 2019 DISK_GET_PART(9)