---
title: inappropriateIOCTLForDevice
framework: system
role: symbol
role_heading: Type Property
path: system/errno/inappropriateioctlfordevice
---

# inappropriateIOCTLForDevice

Inappropriate control function.

## Declaration

```swift
static var inappropriateIOCTLForDevice: Errno { get }
```

## Mentioned in

Adopting Swift Error Constants

## Discussion

Discussion You attempted a control function that can’t be performed on the specified file or device. For information about control functions, see ioctl(2). The corresponding C error is ENOTTY.

## See Also

### Device Errors

- [deviceError](system/errno/deviceerror.md)
- [devicePowerIsOff](system/errno/devicepowerisoff.md)
- [ioError](system/errno/ioerror.md)
- [noSuchAddressOrDevice](system/errno/nosuchaddressordevice.md)
- [notBlockDevice](system/errno/notblockdevice.md)
- [operationNotSupportedByDevice](system/errno/operationnotsupportedbydevice.md)
