Hi Sergey, <div>I think what you are looking for is</div><div><a href="http://www.erlang.org/doc/man/erl_driver.html#driver_caller">http://www.erlang.org/doc/man/erl_driver.html#driver_caller</a></div><div>"This function returns the process id of the process that made the current call to the driver. The process id can be used withdriver_send_term to send back data to the caller". </div>
<div>or</div><div><a href="http://www.erlang.org/doc/man/erl_driver.html#driver_connected">http://www.erlang.org/doc/man/erl_driver.html#driver_connected</a></div><div> <br><br><div class="gmail_quote">On Thu, Aug 23, 2012 at 2:48 PM, Zhemzhitsky Sergey <span dir="ltr"><<a href="mailto:Sergey_Zhemzhitsky@troika.ru" target="_blank">Sergey_Zhemzhitsky@troika.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="RU" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US">Hi guys,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I need to convert erlang_pid structure into ErlDrvTermData that will be passed to
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">driver_send_term(ErlDrvPort ix, ErlDrvTermData to, ErlDrvTermData* data, int len) function in linked-in driver.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Is it possible to achieve? <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style>Best Regards,<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style>Sergey<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>

<p><span style="font-family:'Arial';font-size:8pt">_______________________________________________________</span></p>
<p><span style="font-family:'Arial';font-size:8pt"></span></p>
<p><span style="font-family:'Arial';font-size:8pt"> </span></p>
<p><span style="font-family:'Arial';font-size:8pt">The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. </span></p>

<p><span style="font-family:'Arial';font-size:8pt">If you need assistance please contact our Contact Center  <a href="tel:%28%2B7495%29%20258%200500" value="+74952580500" target="_blank">(+7495) 258 0500</a> or go to <a href="http://www.troika.ru/eng/Contacts/system.wbp" target="_blank">www.troika.ru/eng/Contacts/system.wbp</a>  </span></p>

<p><span style="font-family:'Arial';font-size:8pt"> </span></p></div>

<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>