Kernel: Make ioctl take unsigned long instead of int

this is what linux does :D

also fix one or two `return ioctl` instead of `return ioctl_impl`
This commit is contained in:
2026-07-07 03:12:39 +03:00
parent ea4e016b1e
commit eee0b7c3ff
24 changed files with 33 additions and 33 deletions
+3 -3
View File
@@ -135,9 +135,9 @@ namespace Kernel
return bytes_to_copy;
}
BAN::ErrorOr<long> FramebufferDevice::ioctl_impl(int cmd, void* arg)
BAN::ErrorOr<long> FramebufferDevice::ioctl_impl(unsigned long request, void* arg)
{
switch (cmd)
switch (request)
{
case FB_MSYNC_RECTANGLE:
{
@@ -152,7 +152,7 @@ namespace Kernel
}
}
return CharacterDevice::ioctl(cmd, arg);
return CharacterDevice::ioctl_impl(request, arg);
}
uint32_t FramebufferDevice::get_pixel(uint32_t x, uint32_t y) const