4 #include <disk/swsusp.h>
9 * swsusp_check - check if a (swap) partition contains the swsusp signature
10 * @drive_info: driveinfo struct describing the disk containing the partition
11 * @ptab; Partition table of the partition
13 int swsusp_check(struct driveinfo *drive_info, struct part_entry *ptab)
15 struct swsusp_header header_p;
19 /* Read first page of the swap device */
20 offset = ptab->start_lba;
21 if (read_sectors(drive_info, &header_p, offset, PAGE_SIZE / SECTOR) == -1) {
24 found = !memcmp(SWSUSP_SIG, header_p.sig, 10);