Type Alias CUdevResource_v1

Source
pub type CUdevResource_v1 = CUdevResource_st;
Expand description

\struct CUdevResource 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. \code struct { CUdevResourceType type; union { CUdevSmResource sm; }; }; \endcode

  • If \p type is \p CU_DEV_RESOURCE_TYPE_INVALID, this resoure is not valid and cannot be further accessed.
  • If \p type is \p CU_DEV_RESOURCE_TYPE_SM, the ::CUdevSmResource structure \p sm is filled in. For example, \p sm.smCount will reflect the amount of streaming multiprocessors available in this resource.

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, }

Fields§

§type_: CUdevResourceType

< Type of resource, dictates which union field was last set

§_internal_padding: [u8; 92]§__bindgen_anon_1: CUdevResource_st__bindgen_ty_1