Function cuMemHostGetFlags

Source
pub unsafe extern "C" fn cuMemHostGetFlags(
    pFlags: *mut c_uint,
    p: *mut c_void,
) -> CUresult
Expand description

\brief Passes back flags that were used for a pinned allocation

Passes back the flags \p pFlags that were specified when allocating the pinned host buffer \p p allocated by ::cuMemHostAlloc.

::cuMemHostGetFlags() will fail if the pointer does not reside in an allocation performed by ::cuMemAllocHost() or ::cuMemHostAlloc().

\param pFlags - Returned flags word \param p - Host pointer

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE \notefnerr

\sa ::cuMemAllocHost, ::cuMemHostAlloc, ::cudaHostGetFlags