B_GET_GEOMETRY
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
if (ioctl(device->si_fd, B_GET_GEOMETRY, geometry, sizeof(device_geometry)) == -1) {
hasDeviceGeometry = B_OK == ioctl(fd, B_GET_GEOMETRY, &deviceGeometry,
if (ioctl(fd, B_GET_GEOMETRY, &geometry, sizeof(device_geometry)) < 0) {
else if (dev->d_ops->control(dev, B_GET_GEOMETRY, &geometry) == 0) {
if (ioctl(fDevice, B_GET_GEOMETRY, &geometry,
if (!ioctl(fDevice, B_GET_GEOMETRY, &geometry,
} else if (ioctl(device, B_GET_GEOMETRY, &geometry, sizeof(device_geometry)) == 0) {
&& ioctl(fd, B_GET_GEOMETRY, &geometry, sizeof(geometry)) == 0
if (device < 0 || ioctl(device, B_GET_GEOMETRY, &geometry,
if (ioctl(deviceFD, B_GET_GEOMETRY, &geometry, sizeof(geometry)) >= 0
} else if (ioctl(device, B_GET_GEOMETRY, &geometry, sizeof(device_geometry))
IOCTL_INFO_ENTRY(B_GET_GEOMETRY),
if (ioctl(dev, bios?B_GET_BIOS_GEOMETRY:B_GET_GEOMETRY, &geom, sizeof(geom)) < 0) {
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
B_GET_GEOMETRY, &geometry, sizeof(struct device_geometry)) >= B_OK) {
if (ioctl(fFD, B_GET_GEOMETRY, geometry, sizeof(*geometry)) != 0)
B_GET_GEOMETRY, &geometry, sizeof(geometry));
if (ioctl(fd, B_GET_GEOMETRY, &device->geometry) < 0) {
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
case B_GET_GEOMETRY:
if (ioctl(fFD, B_GET_GEOMETRY, &geometry, sizeof(geometry)) < 0)
if (ioctl(fFD, B_GET_GEOMETRY, &geometry, sizeof(geometry)) < 0)
if (ioctl(fd, B_GET_GEOMETRY, &systemGeometry) == 0) {