cudaHostGetDevicePointer with structs

Hi guys

I have the next question.

I have in my code a struct A, which contains a struct B and C.

Now, I want to work with zero mem copy, but I don’t know how can I get the pointer of Struct A with the all data using cudaHostGetDevicePointer.

When I work with basic types, if works ok, but not with a struct which contain more structs.

Can somebody tell me how can I use the cudaHostGetDevicePointer for this type of structs.