1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

Kernel: Add ioctls to BochsVGADevice for mode setting and page flipping.

Use these in WindowServer instead of poking at the BochsVGADevice directly.
This commit is contained in:
Andreas Kling 2019-02-16 10:24:55 +01:00
parent 799177feda
commit 468113422f
6 changed files with 50 additions and 16 deletions

View file

@ -1786,9 +1786,9 @@ int Process::sys$ioctl(int fd, unsigned request, unsigned arg)
*pid = descriptor->socket()->origin_pid();
return 0;
}
if (!descriptor->is_character_device())
if (!descriptor->is_device())
return -ENOTTY;
return descriptor->character_device()->ioctl(*this, request, arg);
return descriptor->device()->ioctl(*this, request, arg);
}
int Process::sys$getdtablesize()