What does errno 6 (ENXIO) mean?

 
Could be also:
ConstantTypeOS
ERROR_INVALID_HANDLEWin32 errorWindows
KERN_RESOURCE_SHORTAGEKern returnMac
ippStsDivByZeroIntel Ipp StatusAny
INVALID_PROCESS_DETACH_ATTEMPTBugCheck CodeWindows
Previous Next
EIO E2BIG

ENXIO

Two common meanings

ENXIO is often associated with special files rather than ordinary files. When opening a character or block device, it can mean that the device node exists but the associated device is absent or not available. The pathname is valid; the underlying target is not.

The code also has a distinct FIFO case. Opening a FIFO for writing with nonblocking behavior can fail when no process currently has the FIFO open for reading. That is an endpoint-availability condition, not a filesystem corruption problem. Other APIs can define additional meanings, so the call site still matters.

How to investigate

  • Classify the pathname: ordinary file, device node, FIFO, socket, or another special object.
  • For devices, verify that the intended hardware or virtual device is present and that the relevant driver or service is available.
  • For FIFOs, verify the reader/writer startup order and choose deliberately between blocking open semantics, nonblocking retry logic, or a different IPC mechanism.
  • Do not recreate a device node merely because the name exists; confirm that its major/minor mapping and the intended device are correct.

References


Looking for a different code? Search another status or error code.