allocate pinned memory from pointer

I have a pointer

unsigned long long* gs

It points to a value that is a memory address.

*gs=an address

At this address I have some data which I want to process at gpu.

Is it possible to allocate pagelocked memory using the initial pointer (gs)?

Can anyone provide some code example because I am really confused.

I have a pointer

unsigned long long* gs

It points to a value that is a memory address.

*gs=an address

At this address I have some data which I want to process at gpu.

Is it possible to allocate pagelocked memory using the initial pointer (gs)?

Can anyone provide some code example because I am really confused.

Take a look at cudaHostRegister.
You want to use Cuda 4.1, the function in 4.0 had too many restrictions and it was pretty much useless.

Take a look at cudaHostRegister.
You want to use Cuda 4.1, the function in 4.0 had too many restrictions and it was pretty much useless.