Using masking brushes

How do you use masking brushes? (Meaning, how do you get your image in the shape of the brush, that sounds terrible but I don't know how to phrase it.) I can't find a tutorial anywhere. Thanks.