def _device_pointer_attr(devmem, attr, odata):
 error = driver.cuPointerGetAttribute(byref(odata), attr, device_ctypes_pointer(devmem))
 driver.check_error(error, 'Failed to query pointer attribute')

def _device_pointer_attr ( devmem , attr , odata ) : error = driver . cuPointerGetAttribute ( byref ( odata ) , attr , device_ctypes_pointer ( devmem ) ) driver . check_error ( error , 'Failed to query pointer attribute' )
query attribute on the device pointer .