hipMemGetHandleForAddressRange

Function hipMemGetHandleForAddressRange 

Source
pub unsafe extern "C" fn hipMemGetHandleForAddressRange(
    handle: *mut c_void,
    dptr: hipDeviceptr_t,
    size: usize,
    handleType: hipMemRangeHandleType,
    flags: c_ulonglong,
) -> hipError_t
Expand description

@brief Returns a handle for the address range requested.

This function returns a handle to a device pointer created using either hipMalloc set of APIs or through hipMemAddressReserve (as long as the ptr is mapped).

@param [out] handle Ptr to the handle where the fd or other types will be returned. @param [in] dptr Device ptr for which we get the handle. @param [in] size Size of the address range. @param [in] handleType Type of the handle requested for the address range. @param [in] flags Any flags set regarding the handle requested.

@returns #hipSuccess if the kernel is launched successfully, otherwise an appropriate error code.