#[repr(C)]pub struct CUmemAllocationProp {
pub alloc_type: u32,
pub requested_handle_types: u32,
pub location: CUmemLocation,
pub win32_handle_meta_data: *mut c_void,
pub alloc_flags: u64,
}Expand description
Properties passed to cuMemCreate to describe a new VMM allocation.
Mirrors CUmemAllocationProp in cuda.h.
The alloc_type, requested_handle_types and alloc_flags fields are
stored as raw integers so that future driver extensions cannot trigger UB
via unknown discriminants; convert them to / from
CUmemAllocationType / CUmemAllocationHandleType when interpreting.
Fields§
§alloc_type: u32Allocation type; see CUmemAllocationType.
requested_handle_types: u32Bitfield of OS handle types to export; see
CUmemAllocationHandleType.
location: CUmemLocationPhysical location of the allocation.
win32_handle_meta_data: *mut c_voidWin32 security attributes pointer; null on non-Windows platforms or when no specific security descriptor is required.
alloc_flags: u64Reserved for future allocation flags; must be 0 on current drivers.
Trait Implementations§
Source§impl Clone for CUmemAllocationProp
impl Clone for CUmemAllocationProp
Source§fn clone(&self) -> CUmemAllocationProp
fn clone(&self) -> CUmemAllocationProp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CUmemAllocationProp
impl Debug for CUmemAllocationProp
Source§impl Default for CUmemAllocationProp
impl Default for CUmemAllocationProp
Source§impl PartialEq for CUmemAllocationProp
impl PartialEq for CUmemAllocationProp
Source§fn eq(&self, other: &CUmemAllocationProp) -> bool
fn eq(&self, other: &CUmemAllocationProp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CUmemAllocationProp
impl Eq for CUmemAllocationProp
impl Send for CUmemAllocationProp
impl StructuralPartialEq for CUmemAllocationProp
impl Sync for CUmemAllocationProp
Auto Trait Implementations§
impl Freeze for CUmemAllocationProp
impl RefUnwindSafe for CUmemAllocationProp
impl Unpin for CUmemAllocationProp
impl UnsafeUnpin for CUmemAllocationProp
impl UnwindSafe for CUmemAllocationProp
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