Skip to content

resourcemanager: check if device exists dynamically - #108

Closed
mlohvynenko wants to merge 1 commit into
aosedge:mainfrom
mlohvynenko:hotfix_device
Closed

resourcemanager: check if device exists dynamically#108
mlohvynenko wants to merge 1 commit into
aosedge:mainfrom
mlohvynenko:hotfix_device

Conversation

@mlohvynenko

Copy link
Copy Markdown
Member

This patch uses std::filesystem to check if the device exists instead of checking if it is in the list of devices. This allows to check for devices that are plugged in after the ResourceManager is initialized. As well as to check devices multiple subfolders deep, e.g. /dev/dri/card0.

This patch uses std::filesystem to check if the device exists
instead of checking if it is in the list of devices.
This allows to check for devices that are plugged in after
the ResourceManager is initialized. As well as to check devices
multiple subfolders deep, e.g. /dev/dri/card0.

Signed-off-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant