Erlang driver
>>>> Click Here to Download <<<<<<<
An Erlang driver is a library containing a set of native driver callback functions that the Erlang Virtual Machine calls when certain events occur. There can be multiple instances of a driver, each instance is associated with an Erlang port. Warning Use this functionality with extreme care. The driver calls back to the emulator, using the API functions declared in erl_driver.h. They are used for outputting data from the driver, using timers, etc. A driver is a library with a set of function that the emulator calls, in response to Erlang functions and message sending. There may be multiple instances of a driver, each instance is. Erlang -- Drivers 9 Drivers This chapter provides a (very) brief overview on how to write efficient drivers. It is assumed that you already have a good understanding of drivers. Drivers and concurrency The run-time system will always take a lock before running any code in a driver.
Creating a Driver Creating a linked-in driver is the most efficient way of interfacing foreign-language code with Erlang, but it is also the most dangerous. Any fatal error in the linked-in driver will crash the Erlang System. Following is an example of a driver implementation in Erlang − Example. Erlang -- Drivers 10 Drivers This section provides a brief overview on how to write efficient drivers. It is assumed that you have a good understanding of drivers. Drivers and Concurrency The runtime system always takes a lock before running any code in a driver. GENERIC ERLANG PORT [DRIVER] (GEP [D]), VERSION (Jan 22 ) PURPOSE To automatically generate an Erlang port driver or Erlang port for C/C++ bindings using a single self-contained file.
The applications chosen for this evaluation (Mnesia,and Erlang MySql Driver), though being all IO bound, differ from the way they handle the read/write. MongoDB client interface for Erlang applications. Purpose: Driver. Maintenance status: Actively Maintained. Supported MongoDB versions: Erlang RunTime System (ERTS) have a few drivers written in C language that used to interact with the OS or to access to low level resources.