How ciubotaru/eca-lkm works
eca-lkm is a Linux kernel module that exposes a Rule 30 pseudo-random number generator as the /dev/eca30 character device. The user workflow is to write bytes to seed or alter the internal pool, then read generated random bytes; reads refill a drained pool from the kernel random source. Device registration and teardown support that workflow. The sampled source shows these relationships directly; the README documents the device interface and udev rule capability, but not the rule’s runtime behavior.
Main entry points: eca30.c Device operations · 99-eca30.rules udev rule
Components 7
Character device
- Device operations
eca30.c - Device lifecycle
eca30.c
Random generator
- Rule 30 pool
eca30.c
Other components
- Process
- Kernel random
- /dev/eca30
- udev rule
99-eca30.rules
Connections 7
- Process → /dev/eca30: reads / writes
README - /dev/eca30 → Device operations: dispatches I/O
eca30.c - Device operations → Rule 30 pool: updates pool
eca30.c - Rule 30 pool → Device operations: generates bytes
eca30.c - Device operations → Kernel random: refills pool
eca30.c - Device lifecycle → /dev/eca30: creates device
eca30.c - udev rule → /dev/eca30: sets attributes
README