linked-in driver

Serge Aleynikov serge@REDACTED
Wed Jun 1 03:22:16 CEST 2005


I need to pass parameters to the start function of a linked-in driver, 
but I am not sure how this can be done.

The start function accepts a char* command.  Is there a way to pass 
anything there besides the driver's name?

int start(ErlDrvPort port, char* command);

After examining erlang:open_port/2 I found the {env, Environment} 
option, but I believe it only works for port drivers.

Any advice on the subject is appreciated.

Regards,

Serge



More information about the erlang-questions mailing list