SanitizerApi: Sanitizer_ResourceFunctionsLazyLoadedData Struct Reference

# Sanitizer_ResourceFunctionsLazyLoadedData Struct Reference
[Sanitizer Callback API]

Data passed into a CUDA function callback function. More...

## Data Fields
CUcontext | context
const CUfunction * | functions
CUmodule | module
uint32_t | numFunctions

## Detailed Description

Data passed into a CUDA function callback function as the `cbdata` argument to Sanitizer_CallbackFunc. The `cbdata` will be this type for `domain` equal tp SANITIZER_CB_DOMAIN_RESOURCE and `cbid` equal to SANITIZER_CBID_RESOURCE_FUNCTIONS_LAZY_LOADED or SANITIZER_CBID_RESOURCE_FUNCTIONS_LAZY_PATCHED. The callback data is only valid within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of it.

## Field Documentation

CUcontext Sanitizer_ResourceFunctionsLazyLoadedData::context

The context containing the functions.

const CUfunction* Sanitizer_ResourceFunctionsLazyLoadedData::functions

An array containing the functions.

CUmodule Sanitizer_ResourceFunctionsLazyLoadedData::module

The module containing the functions.

uint32_t Sanitizer_ResourceFunctionsLazyLoadedData::numFunctions

The size of the function array.