Proof of technology mechanism to connect Erlang VM to Linux kernel driver
Author: The Profitware Group / Sergey Sobko [email protected]
The code is mainly written as a part of my very special coursework at Moscow Institute of Electronics and Mathematics (MIEM HSE).
This is a proof of technology that might show how to connect Erlang VM to Linux kernel device driver. The main idea is to connect Erlang application to device driver through procfs. As for device driver, it is simple misc_device.
The code is hosted at GitHub.
Check out the latest development version anonymously with:
$ git clone git://github.com/MIEMHSE/erlangio.git
$ cd erlangio
From source:
Install the dependencies:
Getting dependencies (after Rebar is installed):
$ rebar get-deps
Compilation:
$ rebar compile
To run development environment
$ sudo insmod priv/erlangio.ko
$ erl -pa ebin deps/*/ebin -eval "application:start(erlangio)"
$ sudo rmmod erlangio
To test technology while application is running
$ echo 'Hello, world!' | sudo tee --append /dev/erlangio > /dev/null