The girl with long hair is my cousin. The underlined phrase functions as -

Answer: 
an adjective
The girl with long hair is my cousin. The underlined phrase functions as -