pub unsafe extern "C" fn cuModuleEnumerateFunctions(
functions: *mut CUfunction,
numFunctions: c_uint,
mod_: CUmodule,
) -> CUresult
Expand description
\brief Returns the function handles within a module.
Returns in \p functions a maximum number of \p numFunctions function handles within \p mod. When function loading mode is set to LAZY the function retrieved may be partially loaded. The loading state of a function can be queried using ::cuFunctionIsLoaded. CUDA APIs may load the function automatically when called with partially loaded function handle which may incur additional latency. Alternatively, ::cuFunctionLoad can be used to explicitly load a function. The returned function handles become invalid when the module is unloaded.
\param functions - Buffer where the function handles are returned to \param numFunctions - Maximum number of function handles may be returned to the buffer \param mod - Module to query from
\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_INVALID_VALUE
\sa ::cuModuleGetFunction, ::cuModuleGetFunctionCount, ::cuFuncIsLoaded, ::cuFuncLoad