[erlang-questions] Passing parameters to a port driver
Sat Mar 8 15:21:50 CET 2008
There is no argc/argv in a linked in driver as far as I know. On the
driver side you have
static ErlDrvData driver_start(ErlDrvPort port, char *buff)
and buff just points to the driver name; if you load the driver with
parameters you just get an "open_error".
Any other ideas?
Per Hedeland escribió:
> Sebastian Bello <sebastian.bello@REDACTED> wrote:
>> sorry but I didn't mention I was thinking about a linked-in driver;
> You said "driver" which was quite sufficient - that was the case that my
> answer described. (An external port program would (at least on *nix) get
> the Command in the argc/argv arguments to main()...)
> erlang-questions mailing list
> __________ NOD32 2843 (20080201) Information __________
> This message was checked by NOD32 antivirus system.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions