[erlang-questions] erlang and sysfs_notify limitations
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
Is it possible to add this way of polling local files (non-sockets) to
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions