How to make a transparency mask layer?

Hi,
I wanted to know how to make a transparency mask layer where for example black areas would allow to see through the targeted layer.
Thank you in advance.