Detect a device buffer without using UVA

Hi folks, I wonder if it could be possible to detect a device buffer at runtime without using UVA? Here I assume that the programmer uses plain pointers to keep track of buffers allocated by cudaMalloc and cudaHostAlloc/malloc.

Thanks,
Tan.