1PART_VALID(9) Block Devices PART_VALID(9)
2
3
4
6 part_valid - see if check corresponds to a partition within disk
7
9 bool part_valid(struct gendisk * disk, struct hd_struct * check);
10
12 disk
13 gendisk of interest
14
15 check
16 hd_struct pointer to check against the partition table
17
19 Check to see if it is safe to dereference check. We donĀ“t always know
20 if req->part is filled in by the block layer. This routine is called to
21 avoid dereferencing a bogus pointer. See req_to_part.
22
24 RCU read locked.
25
27 true on success, false on failure
28
30Kernel Hackers Manual 2.6. June 2019 PART_VALID(9)