Searched refs:HDIO_GETGEO (Results 1 - 3 of 3) sorted by relevance

/opensolaris-onvv-gate/usr/src/lib/libntfs/common/include/ntfs/
H A Ddevice_io.h38 #ifndef HDIO_GETGEO
39 # define HDIO_GETGEO 0x301 macro
/opensolaris-onvv-gate/usr/src/lib/libntfs/common/libntfs/
H A Ddevice.c79 #if defined(linux) && !defined(HDIO_GETGEO)
80 #define HDIO_GETGEO 0x0301 /* Get device geometry. */ macro
631 * EOPNOTSUPP System does not support HDIO_GETGEO ioctl
632 * ENOTTY @dev is a file or a device not supporting HDIO_GETGEO
640 #ifdef HDIO_GETGEO
643 if (!dev->d_ops->ioctl(dev, HDIO_GETGEO, &geo)) {
644 ntfs_log_debug("HDIO_GETGEO start_sect = %lu (0x%lx)\n",
664 * EOPNOTSUPP System does not support HDIO_GETGEO ioctl
665 * ENOTTY @dev is a file or a device not supporting HDIO_GETGEO
673 #ifdef HDIO_GETGEO
[all...]
/opensolaris-onvv-gate/usr/src/grub/grub-0.97/lib/
H A Ddevice.c46 # ifndef HDIO_GETGEO
47 # define HDIO_GETGEO 0x0301 /* get device geometry */ macro
48 /* If HDIO_GETGEO is not defined, it is unlikely that hd_geometry is
57 # endif /* ! HDIO_GETGEO */
161 if (ioctl (fd, HDIO_GETGEO, &hdg))
484 /* Check if DEVICE is a CD-ROM drive by the HDIO_GETGEO ioctl. */
492 /* If it is a block device and isn't a floppy, check if HDIO_GETGEO
496 && ioctl (fileno (fp), HDIO_GETGEO, &hdg))

Completed in 98 milliseconds