#[repr(C)]pub struct drm_amdgpu_heap_info {
pub total_heap_size: u64,
pub usable_heap_size: u64,
pub heap_usage: u64,
pub max_allocation: u64,
}Fields§
§total_heap_size: u64max. physical memory
usable_heap_size: u64Theoretical max. available memory in the given heap
heap_usage: u64Number of bytes allocated in the heap. This includes all processes and private allocations in the kernel. It changes when new buffers are allocated, freed, and moved. It cannot be larger than heap_size.
max_allocation: u64Theoretical possible max. size of buffer which could be allocated in the given heap
Trait Implementations§
Source§impl Clone for drm_amdgpu_heap_info
impl Clone for drm_amdgpu_heap_info
Source§fn clone(&self) -> drm_amdgpu_heap_info
fn clone(&self) -> drm_amdgpu_heap_info
Returns a duplicate of the value. Read more
1.0.0 · 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 drm_amdgpu_heap_info
impl Debug for drm_amdgpu_heap_info
impl Copy for drm_amdgpu_heap_info
Auto Trait Implementations§
impl Freeze for drm_amdgpu_heap_info
impl RefUnwindSafe for drm_amdgpu_heap_info
impl Send for drm_amdgpu_heap_info
impl Sync for drm_amdgpu_heap_info
impl Unpin for drm_amdgpu_heap_info
impl UnwindSafe for drm_amdgpu_heap_info
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