pub type CUdevResource_v1 = CUdevResource_st;Expand description
A tagged union describing different resources identified by the type field. This structure should not be directly modified outside of the API that created it.
struct {
CUdevResourceType type;
union {
CUdevSmResource sm;
CUdevWorkqueueConfigResource wqConfig;
CUdevWorkqueueResource wq;
};
};- If
typeisCUdevResourceType::CU_DEV_RESOURCE_TYPE_INVALID, this resource is not valid and cannot be further accessed. - If
typeisCUdevResourceType::CU_DEV_RESOURCE_TYPE_SM, theCUdevSmResourcestructuresmis filled in. For example,sm.smCountwill reflect the amount of streaming multiprocessors available in this resource. - If
typeisCUdevResourceType::CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG, theCUdevWorkqueueConfigResourcestructurewqConfigis filled in. - If
typeisCUdevResourceType::CU_DEV_RESOURCE_TYPE_WORKQUEUE, theCUdevWorkqueueResourcestructurewqis filled in.
Aliased Type§
#[repr(C)]pub struct CUdevResource_v1 {
pub type_: CUdevResourceType,
pub _internal_padding: [u8; 92],
pub __bindgen_anon_1: CUdevResource_st__bindgen_ty_1,
pub nextResource: *mut CUdevResource_st,
}Fields§
§type_: CUdevResourceTypeType of resource, dictates which union field was last set.
_internal_padding: [u8; 92]Internal padding in the native ABI layout.
__bindgen_anon_1: CUdevResource_st__bindgen_ty_1Anonymous native member. See CUdevResource_st__bindgen_ty_1 for its fields.
nextResource: *mut CUdevResource_stLink to another resource in a native device-resource chain.