driver_entry

driver_entry

C library

driver_entry

Library summary

The driver-entry structure used by erlang drivers.

Description

Warning

Use this functionality with extreme care!

A driver callback is executed as a direct extension of the native code of the VM. Execution is not made in a safe environment. The VM can not provide the same services as provided when executing Erlang code, such as preemptive scheduling or memory protection. If the driver callback function doesn't behave well, the whole VM will misbehave.

  • A driver callback that crash will crash the whole VM.

  • An erroneously implemented driver callback might cause a VM internal state inconsistency which may cause a crash of the VM, or miscellaneous misbehaviors of the VM at any point after the call to