[erlang-questions] How to get pid number in NIF code?

Jovi Zhang <>
Wed Sep 28 09:53:48 CEST 2011


On Wed, Sep 28, 2011 at 3:31 PM, Anthony Ramine <> wrote:
> Are you looking for enif_self() [1]?
>
> Regards,
>
> [1] http://www.erlang.org/doc/man/erl_nif.html#enif_self

enif_self only return ErlNifPid, but I want to get pid number.
like pid is <0.32.0>, what I want to get is 32, is there any way to
get number? Thanks!

ErlNifPid* enif_self(ErlNifEnv* caller_env, ErlNifPid* pid)



More information about the erlang-questions mailing list