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:
Sahan Fernando 2022-02-18 13:44:21 +11:00 committed by Ali Mohammad Pur
parent a2887dc157
commit 2939f65753
Notes: sideshowbarker 2024-07-17 17:40:51 +09:00

View file

@ -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);