EL2HLT
Linux / POSIXERRORCriticalDeviceHIGH confidence

Level 2 Halted

Production Risk

Rare; STREAMS-specific.

What this means

EL2HLT (errno 51) is a Linux/STREAMS-specific error indicating that level 2 of a layered protocol has halted.

Why it happens
  1. 1STREAMS device driver level 2 has stopped operation
How to reproduce

STREAMS protocol level 2 halt.

trigger — this will error
trigger — this will error
// errno = EL2HLT when STREAMS level 2 halts

expected output

Level 2 halted (EL2HLT)

Fix

Reinitialize the STREAMS device

WHEN After EL2HLT

Reinitialize the STREAMS device
close(fd);
fd = open("/dev/streams_device", O_RDWR);

Why this works

Level 2 halt requires device reinitialization.

Sources
Official documentation ↗

Linux Programmer Manual errno(3)

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All Linux / POSIX errors