Struct libamdgpu_top::DevicePath
source · pub struct DevicePath {
pub render: PathBuf,
pub card: PathBuf,
pub pci: BUS_INFO,
pub sysfs_path: PathBuf,
pub device_id: Option<u32>,
pub revision_id: Option<u32>,
pub device_name: String,
pub arc_proc_index: Arc<Mutex<Vec<ProcInfo>>>,
}Fields§
§render: PathBuf§card: PathBuf§pci: BUS_INFO§sysfs_path: PathBuf§device_id: Option<u32>§revision_id: Option<u32>§device_name: String§arc_proc_index: Arc<Mutex<Vec<ProcInfo>>>Implementations§
source§impl DevicePath
impl DevicePath
pub fn init(&self) -> Result<DeviceHandle>
pub fn get_device_path_list() -> Vec<Self>
pub fn get_gfx_target_version_from_kfd(&self) -> Option<GfxTargetVersion>
pub fn check_if_device_is_active(&self) -> bool
Trait Implementations§
source§impl Clone for DevicePath
impl Clone for DevicePath
source§fn clone(&self) -> DevicePath
fn clone(&self) -> DevicePath
Returns a copy 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 DevicePath
impl Debug for DevicePath
Auto Trait Implementations§
impl Freeze for DevicePath
impl RefUnwindSafe for DevicePath
impl Send for DevicePath
impl Sync for DevicePath
impl Unpin for DevicePath
impl UnwindSafe for DevicePath
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)