Merge "init: Support for initializing virtio-console devices" into main
This commit is contained in:
commit
c36f4f057b
2 changed files with 5 additions and 0 deletions
|
|
@ -139,6 +139,10 @@ bool BlockDevInitializer::InitPlatformDevice(const std::string& dev_name) {
|
|||
return InitDevice("/sys/devices/platform", dev_name);
|
||||
}
|
||||
|
||||
bool BlockDevInitializer::InitHvcDevice(const std::string& dev_name) {
|
||||
return InitDevice("/sys/devices/virtual/tty", dev_name);
|
||||
}
|
||||
|
||||
bool BlockDevInitializer::InitDevice(const std::string& syspath, const std::string& device_name) {
|
||||
bool found = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ class BlockDevInitializer final {
|
|||
bool InitDevices(std::set<std::string> devices);
|
||||
bool InitDmDevice(const std::string& device);
|
||||
bool InitPlatformDevice(const std::string& device);
|
||||
bool InitHvcDevice(const std::string& device);
|
||||
|
||||
private:
|
||||
ListenerAction HandleUevent(const Uevent& uevent, std::set<std::string>* devices);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue