[erlang-questions] Passing parameters to a port driver

Sebastian Bello sebastian.bello@REDACTED
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()...)
> --Per
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
> __________ NOD32 2843 (20080201) Information __________
> This message was checked by NOD32 antivirus system.
> http://www.eset.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080308/90d67a32/attachment.htm>

More information about the erlang-questions mailing list