pub unsafe extern "C" fn cuMemAddressReserve(
ptr: *mut CUdeviceptr,
size: usize,
alignment: usize,
addr: CUdeviceptr,
flags: c_ulonglong,
) -> CUresult
Expand description
\brief Allocate an address range reservation.
Reserves a virtual address range based on the given parameters, giving the starting address of the range in \p ptr. This API requires a system that supports UVA. The size and address parameters must be a multiple of the host page size and the alignment must be a power of two or zero for default alignment.
\param[out] ptr - Resulting pointer to start of virtual address range allocated \param[in] size - Size of the reserved virtual address range requested \param[in] alignment - Alignment of the reserved virtual address range requested \param[in] addr - Fixed starting address range requested \param[in] flags - Currently unused, must be zero \return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_OUT_OF_MEMORY, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_PERMITTED, ::CUDA_ERROR_NOT_SUPPORTED
\sa ::cuMemAddressFree