1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

Kernel: Register Virtio console ports with device management

Previously, Virtio console ports would not show up in `/sys/dev/char/`.
Also adds support to `SystemServer` to create more than one console
port device in `/dev/` in the multiport case.
This commit is contained in:
Jelle Raaijmakers 2021-11-29 16:03:38 +01:00 committed by Andreas Kling
parent 2565f458d1
commit e187207610
2 changed files with 7 additions and 13 deletions

View file

@ -207,14 +207,7 @@ static void populate_devfs_char_devices()
break;
}
case 229: {
switch (minor_number) {
case 0: {
create_devfs_char_device("/dev/hvc0p0", 0666, 229, 0);
break;
}
default:
warnln("Unknown character device {}:{}", major_number, minor_number);
}
create_devfs_char_device(String::formatted("/dev/hvc0p{}", minor_number), 0666, major_number, minor_number);
break;
}
case 10: {