[erlang-questions] erlang and sysfs_notify limitations

Max Lapshin max.lapshin@REDACTED
Wed Jun 19 21:13:28 CEST 2019

Linux kernel has sysfs_notify mechanism.

This mechanism allow to switch from periodical reading (polling) /sys files
to blocking epoll call.

userlevel application can open required /sys file and start waiting for
events with blocking "poll" call.

Kernel driver will call sysfs_notify when something changes and user
application will be able to read new data.

As far as I have understood, erlang right now cannot use this approach
because this non-standard approach requires polling on regular files.

I have made an illustration for this problem:

Without adding it we cannot read gpio, temperature or mdraid events with
new way.

Is it possible to add this way of polling local files (non-sockets) to
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190619/36b2bb88/attachment.htm>

More information about the erlang-questions mailing list