pub fn pointer_attributes(ptr: *const c_void) -> Result<PointerAttributes>Expand description
Query what CUDA knows about ptr. On pointers CUDA has never seen
(plain host malloc, returned from C libraries) this returns
MemoryType::Unregistered.
§Safety
ptr can be any pointer — CUDA internally classifies it. This is a
pure query and doesn’t dereference ptr.