Name
part_valid —
see if check
corresponds to a partition within disk
Synopsis
bool part_valid ( | struct gendisk * disk, |
| struct hd_struct * check) ; |
Arguments
disk
gendisk of interest
check
hd_struct pointer to check against the partition table
Description
Check to see if it is safe to dereference check
. We don't always
know if req->part is filled in by the block layer. This routine
is called to avoid dereferencing a bogus pointer. See req_to_part.
RETURNS
true on success, false on failure