Skip to content

Commit

Permalink
SystemServer: Create device files for gpus on startup
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ccapitalK authored and alimpfard committed Mar 9, 2022
1 parent a2887dc commit 2939f65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Userland/Services/SystemServer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2939f65

Please sign in to comment.