mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:17:35 +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
1 changed files with 4 additions and 0 deletions
|
@ -210,6 +210,10 @@ static void populate_devtmpfs_devices_based_on_devctl()
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 28: {
|
||||||
|
create_devtmpfs_block_device(String::formatted("/dev/gpu{}", minor_number), 0666, 28, minor_number);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case 29: {
|
case 29: {
|
||||||
if (is_block_device) {
|
if (is_block_device) {
|
||||||
create_devtmpfs_block_device(String::formatted("/dev/fb{}", minor_number), 0666, 29, minor_number);
|
create_devtmpfs_block_device(String::formatted("/dev/fb{}", minor_number), 0666, 29, minor_number);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue