So, most simply:
Starting uwiger-gproc-1.0.1.
Started [gproc]
1> gproc:reg({n,l,{a,1}}).
true
2> gproc:reg({n,l,{a,2}}).
true
3> gproc:reg({p,l,{a,2}},value).
true
4> gproc:select([{ {{n,l,{a,'_'}},'_','_'}, [], ['$_'] }]).
[{{n,l,{a,1}},<0.125.0>,undefined},
{{n,l,{a,2}},<0.125.0>,undefined}]
5> gproc:select([{ {'_',self(),'_'}, [], ['$_'] }]).
[{{n,l,{a,1}},<0.125.0>,undefined},
{{n,l,{a,2}},<0.125.0>,undefined},
{{p,l,{a,2}},<0.125.0>,value}]
The select() logic operates on a logical view of the registry: {Key, Pid, Value}. The Context thing is admittedly confusing, but for normal use, you don’t have to worry about that.
BR,
Ulf