#[repr(C)]pub struct CUdevResource_st {
pub type_: CUdevResourceType,
pub _internal_padding: [c_uchar; 92],
pub __bindgen_anon_1: CUdevResource_st__bindgen_ty_1,
pub nextResource: *mut 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 resoure is not valid and cannot be further accessed. - If
typeisCUdevResourceType::CU_DEV_RESOURCE_TYPE_SM, the ::CUdevSmResource structuresmis filled in. For example,sm.smCountwill reflect the amount of streaming multiprocessors available in this resource. - If
typeisCUdevResourceType::CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG, the ::CUdevWorkqueueConfigResource structurewqConfigis filled in. - If
typeisCUdevResourceType::CU_DEV_RESOURCE_TYPE_WORKQUEUE, the ::CUdevWorkqueueResource structurewqis filled in.
Fields§
§type_: CUdevResourceTypeType of resource, dictates which union field was last set.
_internal_padding: [c_uchar; 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.
Trait Implementations§
Source§impl Clone for CUdevResource_st
impl Clone for CUdevResource_st
impl Copy for CUdevResource_st
Auto Trait Implementations§
impl !Send for CUdevResource_st
impl !Sync for CUdevResource_st
impl Forget for CUdevResource_st
impl Freeze for CUdevResource_st
impl Move for CUdevResource_st
impl RefUnwindSafe for CUdevResource_st
impl Unpin for CUdevResource_st
impl UnsafeUnpin for CUdevResource_st
impl UnwindSafe for CUdevResource_st
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more