Searched refs:ioctl_geo (Results 1 – 1 of 1) sorted by relevance
1570 struct hd_geometry ioctl_geo = {0}; in hdev_probe_geometry() local1576 if (ioctl(s->fd, HDIO_GETGEO, &ioctl_geo) < 0) { in hdev_probe_geometry()1581 if (!ioctl_geo.heads || !ioctl_geo.sectors || !ioctl_geo.cylinders) { in hdev_probe_geometry()1585 if (ioctl_geo.start != 0) { in hdev_probe_geometry()1588 geo->heads = ioctl_geo.heads; in hdev_probe_geometry()1589 geo->sectors = ioctl_geo.sectors; in hdev_probe_geometry()1590 geo->cylinders = ioctl_geo.cylinders; in hdev_probe_geometry()