mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
SystemServer: Create device files for gpus on startup
We are adding a new class of file, a GPU device. These devices have major number 28, and are bound to files named /dev/gpuN.
This commit is contained in:
parent
a2887dc157
commit
2939f65753
Notes:
sideshowbarker
2024-07-17 17:40:51 +09:00
Author: https://github.com/ccapitalK Commit: https://github.com/SerenityOS/serenity/commit/2939f65753 Pull-request: https://github.com/SerenityOS/serenity/pull/12619 Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/sunverwerth Reviewed-by: https://github.com/supercomputer7
|
@ -210,6 +210,10 @@ static void populate_devtmpfs_devices_based_on_devctl()
|
|||
}
|
||||
break;
|
||||
}
|
||||
case 28: {
|
||||
create_devtmpfs_block_device(String::formatted("/dev/gpu{}", minor_number), 0666, 28, minor_number);
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
if (is_block_device) {
|
||||
create_devtmpfs_block_device(String::formatted("/dev/fb{}", minor_number), 0666, 29, minor_number);
|
||||
|
|
Loading…
Reference in a new issue