Thrust Device Vector Function Pointer

Hello,
How can i pass a device vector to a function with a pointer so that i can change it inside the function and then get the result back?

Thank you

although i call the function function3(binv) like this where the binv is a device_vector
and the function header is like:
void function3(thrust::device_vector& a1)

I get this error:

IntelliSense: more than one instance of overloaded function “function3” matches the argument list:

fixed thanks btw