<div dir="ltr">Linux kernel has sysfs_notify mechanism.<div><br></div><div>This mechanism allow to switch from periodical reading (polling) /sys files to blocking epoll call.</div><div><br></div><div>userlevel application can open required /sys file and start waiting for events with blocking "poll" call.</div><div><br></div><div>Kernel driver will call sysfs_notify when something changes and user application will be able to read new data.</div><div><br></div><div>As far as I have understood, erlang right now cannot use this approach because this non-standard approach requires polling on regular files.</div><div><br></div><div>I have made an illustration for this problem: <a href="https://github.com/maxlapshin/erl_notify">https://github.com/maxlapshin/erl_notify</a></div><div><br></div><div>Without adding it we cannot read gpio, temperature or mdraid events with new way.</div><div><br></div><div>Is it possible to add this way of polling local files (non-sockets) to erlang?</div></div>