Function cuFuncGetName

Source
pub unsafe extern "C" fn cuFuncGetName(
    name: *mut *const c_char,
    hfunc: CUfunction,
) -> CUresult
Expand description

\brief Returns the function name for a ::CUfunction handle

Returns in \p **name the function name associated with the function handle \p hfunc . The function name is returned as a null-terminated string. The returned name is only valid when the function handle is valid. If the module is unloaded or reloaded, one must call the API again to get the updated name. This API may return a mangled name if the function is not declared as having C linkage. If either \p **name or \p hfunc is NULL, ::CUDA_ERROR_INVALID_VALUE is returned.

\param name - The returned name of the function \param hfunc - The function handle to retrieve the name for

\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE, \notefnerr